Struct deno_ast::SourceMapConfig
source · [−]pub struct SourceMapConfig {
pub inline_sources: bool,
pub maybe_base: Option<ModuleSpecifier>,
}
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
maybe_base: Option<ModuleSpecifier>
When a base is provided, when mapping source names in the source map, the name will be relative to the base.
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
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more