Enum sourcemap::DecodedMap [] [src]

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

Represents the result of a decode operation

Variants

Regular(SourceMap)

Indicates a regular sourcemap

Index(SourceMapIndex)

Indicates a sourcemap index

Methods

impl DecodedMap
[src]

fn lookup_token<'a>(&'a self, line: u32, col: u32) -> Option<Token<'a>>

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.