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 true or false

TEOF

The end of the file

TIdentifier

An identifier

TKeyword

A keyword

TNullLiteral

A null literal

TNumericLiteral

A numeric literal

TPunctuator

A piece of punctuation

TStringLiteral

A string literal

TRegularExpression

A regular expression

TComment

A comment

Trait Implementations

impl Show for TokenData

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

Derived Implementations

impl PartialEq for TokenData

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

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

impl Clone for TokenData

fn clone(&self) -> TokenData

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