tokens library

Classes

BeginToken
The opening half of a grouping pair of tokens. This is used for curly brackets ('{'), parentheses ('('), and square brackets ('[').
CommentToken
A token representing a comment.
DocumentationCommentToken
A documentation comment token.
KeywordToken
A token representing a keyword in the language.
SimpleToken
A token that was scanned from the input. Each token knows which tokens precede and follow it, acting as a link in a doubly linked list of tokens.
StringToken
A token whose value is independent of it's type.
SyntheticBeginToken
A synthetic begin token.
SyntheticKeywordToken
A synthetic keyword token.
SyntheticStringToken
A token whose value is independent of it's type.
SyntheticToken
A synthetic token.
TokenClass
The classes (or groups) of tokens with a similar use.

Properties

$ Token
The new token.
final
$abstract Token
The abstract token.
final
$and Token
The && token.
final
$as Token
The as token.
final
$assert Token
The assert token.
final
$async Token
The async token.
final
$at Token
The @ token.
final
$await Token
The await token.
final
$break Token
The break token.
final
$case Token
The case token.
final
$class Token
The class token.
final
$closeBracket Token
The ] token.
final
$closeCurly Token
The '}' token.
final
$closeParen Token
The ')' token.
final
$colon Token
The ':' token.
final
$const Token
The const token.
final
$default Token
The default token.
final
$deferred Token
The deferred token.
final
$divide Token
The / token.
final
$do Token
The do keyword.
final
$else Token
The else token.
final
$equals Token
The '=' token.
final
$equalsEquals Token
The == token.
final
$extends Token
The extends token.
final
$factory Token
The factory token.
final
$false Token
The false token.
final
$final Token
The final token.
final
$for Token
The for keyword.
final
$gt Token
The > token.
final
$hide Token
The hide token.
final
$if Token
The if token.
final
$implements Token
The implements token.
final
$in Token
The in token.
final
$is Token
The is token.
final
$library Token
The library token.
final
$lt Token
The < token.
final
$minus Token
The - token.
final
$minusMinus Token
The -- token.
final
$multiply Token
The * token.
final
$not Token
The ! token.
final
$notEquals Token
The != token.
final
$null Token
The null token.
final
$nullAwareEquals Token
The '??=' token.
final
$of Token
The of token.
final
$openBracket Token
The '[` token.
final
$openCurly Token
The '{' token.
final
$openParen Token
The '(' token.
final
$or Token
The || token.
final
$part Token
The part token.
final
$period Token
The '.' token.
final
$plus Token
The + token.
final
$plusPlus Token
The ++ token.
final
$question Token
The ? token.
final
$return Token
The return token.
final
$semicolon Token
The ';' token.
final
$show Token
The show token.
final
$star Token
The * token.
final
$static Token
The static token.
final
$super Token
The super keyword.
final
$switch Token
The switch keyword.
final
$this Token
The this token.
final
$throw Token
The throw token.
final
$true Token
The true token.
final
$var Token
The var token.
final
$while Token
The while keyword.
final
$with Token
The with token.
final
$yield Token
The yield token.
final

Functions

intToken(int value) StringToken
Returns an int token for the given int value.
operatorFromCompoundAssignment(TokenType operator) TokenType
Return the binary operator that is invoked by the given compound assignment operator. Throw StateError if the assignment operator does not correspond to a binary operator.
stringToken(String s) StringToken
Returns a string token for the given string s.