Token class

Constructors

Token(int startOffset, int line, int type, bool afterLinebreak, String? text)

Properties

afterLinebreak bool
getter/setter pair
binaryPrecedence int
For tokens that can be used as binary operators, this indicates their relative precedence. Set to -100 for other tokens. Token type can be BINARY, or UNARY (+,-) or NAME (instanceof,in).
getter/setter pair
detailedString String
no setter
endOffset int
no setter
hashCode int
The hash code for this object.
no setterinherited
line int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startOffset int
getter/setter pair
text String?
getter/setter pair
type int
getter/setter pair
value String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

typeToString(int type) String

Constants

ASSIGN → const int
BINARY → const int
COLON → const int
COMMA → const int
DOT → const int
EOF → const int
LBRACE → const int
LBRACKET → const int
LPAREN → const int
NAME → const int
NUMBER → const int
QUESTION → const int
RBRACE → const int
RBRACKET → const int
REGEXP → const int
RPAREN → const int
SEMICOLON → const int
STRING → const int
UNARY → const int
UPDATE → const int