Token class

A Token consists of text and has a TokenType.

Constructors

Token(String text, TokenType type)
Creates a new Token with the given text and type.

Properties

argCount int
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text of this token.
final
type TokenType
The type of this token.
final

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 token) bool
Tokens equal, if they have equal text and types.
override