Struct symbolic_sourcemap::SourceMapView [−][src]
pub struct SourceMapView { /* fields omitted */ }Expand description
Represents a source map.
Implementations
Constructs a sourcemap from a slice.
If the sourcemap is an index it is being flattened. If flattening is not possible then an error is raised.
Looks up a token and returns it.
Returns a token for a specific index.
Returns the number of tokens.
Returns a source view for the given source.
Returns the source name for an index.
Returns the number of sources.
pub fn lookup_token_with_function_name<'a, 'b>(
&'a self,
line: u32,
col: u32,
minified_name: &str,
source: &SourceView<'b>
) -> Option<TokenMatch<'a>>[src]
pub fn lookup_token_with_function_name<'a, 'b>(
&'a self,
line: u32,
col: u32,
minified_name: &str,
source: &SourceView<'b>
) -> Option<TokenMatch<'a>>[src]Looks up a token and the original function name.
This is similar to lookup_token but if a minified function name and
the sourceview to the minified source is available this function will
also resolve the original function name. This is used to fully
resolve tracebacks.
Auto Trait Implementations
impl !RefUnwindSafe for SourceMapViewimpl !Send for SourceMapViewimpl !Sync for SourceMapViewimpl Unpin for SourceMapViewimpl UnwindSafe for SourceMapView