Struct js::syntax::ast::token::Token[][src]

pub struct Token {
    pub data: TokenData,
    pub pos: Position,
}

Represents a token

Fields

The token Data

Token position from original source code

Methods

impl Token
[src]

Create a new detailed token from the token data, line number and column number

Trait Implementations

impl Clone for Token
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Token
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Token
[src]

Formats the value using the given formatter. Read more

impl Display for Token
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Token

impl Sync for Token