pub enum MappingsOptionHires {
Bool(bool),
Boundary,
}
impl Default for MappingsOptionHires {
fn default() -> Self {
Self::Bool(false)
}
}
impl MappingsOptionHires {
pub fn is_boundary(&self) -> bool {
match self {
Self::Bool(_) => false,
Self::Boundary => true,
}
}
pub fn is_truthy(&self) -> bool {
match self {
Self::Bool(b) => *b,
Self::Boundary => true,
}
}
}
pub type RawSegment = Vec<usize>;
pub type RawSegments = Vec<RawSegment>;
#[derive(Default)]
pub struct SourceMapOptions {
pub hires: Option<MappingsOptionHires>,
pub file: Option<String>,
pub source: Option<String>,
pub include_content: Option<bool>,
pub remap_source: Option<Box<dyn Fn(&str) -> String>>,
}