Struct symbolic_sourcemap::SourceMapView [] [src]

pub struct SourceMapView { /* fields omitted */ }

Represents a sourcemap.

Methods

impl SourceMapView
[src]

[src]

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.

[src]

Looks up a token and returns it.

[src]

Returns a token for a specific index.

[src]

Returns the number of tokens.

[src]

Returns a source view for the given source.

[src]

Returns the source name for an index.

[src]

Returns the number of sources.

[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.