Struct sourcemap::Token
[−]
[src]
pub struct Token<'a> { /* fields omitted */ }
Represents a token from a sourcemap
Methods
impl<'a> Token<'a>
[src]
fn get_dst_line(&self) -> u32
get the destination (minified) line number
fn get_dst_col(&self) -> u32
get the destination (minified) column number
fn get_dst(&self) -> (u32, u32)
get the destination line and column
fn get_src_line(&self) -> u32
get the source line number
fn get_src_col(&self) -> u32
get the source column number
fn get_src(&self) -> (u32, u32)
get the source line and column
fn get_source(&self) -> &'a str
get the source if it exists as string
fn get_name(&self) -> Option<&'a str>
get the name if it exists as string
fn has_name(&self) -> bool
returns true
if a name exists, false
otherwise
fn to_tuple(&self) -> (&'a str, u32, u32, Option<&'a str>)
Converts the token into a debug tuple in the form
(source, src_line, src_col, name)
fn get_raw_token(&self) -> RawToken
Get the underlying raw token