Enum js::syntax::ast::token::TokenData[src]
pub enum TokenData {
TBooleanLiteral(bool),
TEOF,
TIdentifier(String),
TKeyword(Keyword),
TNullLiteral,
TNumericLiteral(f64),
TPunctuator(Punctuator),
TStringLiteral(String),
TRegularExpression(String),
TComment(String),
}A single token of Javacript code - a single word, symbol or constant
Variants
TBooleanLiteral | A boolean literal, which is either |
TEOF | The end of the file |
TIdentifier | An identifier |
TKeyword | A keyword |
TNullLiteral | A |
TNumericLiteral | A numeric literal |
TPunctuator | A piece of punctuation |
TStringLiteral | A string literal |
TRegularExpression | A regular expression |
TComment | A comment |