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§
source§impl Debug for SourceMapConfig
impl Debug for SourceMapConfig
source§impl SourceMapGenConfig for SourceMapConfig
impl SourceMapGenConfig for SourceMapConfig
source§fn inline_sources_content(&self, f: &FileName) -> bool
fn inline_sources_content(&self, f: &FileName) -> bool
You can override this to control
sourceContents
.source§fn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
fn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
Returns identifier starting at
bpos
. Read moresource§fn emit_columns(&self, _f: &FileName) -> bool
fn emit_columns(&self, _f: &FileName) -> bool
You can define whether to emit sourcemap with columns or not
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more