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

Trait Implementations

impl Show for Token

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Token

fn eq(&self, __arg_0: &Token) -> bool

fn ne(&self, __arg_0: &Token) -> bool

impl Clone for Token

fn clone(&self) -> Token

fn clone_from(&mut self, source: &Self)