Struct deno_ast::SourceMapConfig
source · pub struct SourceMapConfig {
pub inline_sources: bool,
}
Expand description
Implements a configuration trait for source maps that reflects the logic to embed sources in the source map or not.
Fields
inline_sources: bool
Trait Implementations
sourceimpl Debug for SourceMapConfig
impl Debug for SourceMapConfig
sourceimpl SourceMapGenConfig for SourceMapConfig
impl SourceMapGenConfig for SourceMapConfig
sourcefn file_name_to_source(&self, f: &FileName) -> String
fn file_name_to_source(&self, f: &FileName) -> String
Returns Read more
sourcefn inline_sources_content(&self, f: &FileName) -> bool
fn inline_sources_content(&self, f: &FileName) -> bool
You can override this to control
sourceContents
.sourcefn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
fn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
Returns identifier starting at
bpos
.sourcefn emit_columns(&self, _f: &FileName) -> bool
fn emit_columns(&self, _f: &FileName) -> bool
You can define whether to emit sourcemap with columns or not
fn skip(&self, _f: &FileName) -> bool
Auto Trait Implementations
impl RefUnwindSafe for SourceMapConfig
impl Send for SourceMapConfig
impl Sync for SourceMapConfig
impl Unpin for SourceMapConfig
impl UnwindSafe for SourceMapConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more