Enum sourcemap::DecodedMap [] [src]

pub enum DecodedMap {
    Regular(SourceMap),
    Index(SourceMapIndex),
}

Represents the result of a decode operation

This represents either an actual sourcemap or a source map index. Usually the two things are too distinct to provide a common interface however for token lookup and writing back into a writer general methods are provided.

Variants

Indicates a regular sourcemap

Indicates a sourcemap index

Methods

impl DecodedMap
[src]

Alias for decode.

Writes a decoded sourcemap to a writer.

Shortcut to look up a token on either an index or a regular sourcemap. This method can only be used if the contained index actually contains embedded maps or it will not be able to look up anything.