Struct js::syntax::ast::token::Token[src]
pub struct Token {
pub data: TokenData,
pub pos: Position,
}A single of token of Javascript code including its position
Fields
data | The token |
pos | The token's position |
Methods
impl Token
fn new(data: TokenData, line_number: uint, column_number: uint) -> Token
Create a new detailed token from the token data, line number and column number