Token class final

A program token.

Implemented types
Annotations
  • @immutable

Constructors

Token({required TokenType type, required String lexeme, required int offset})
Creates a program token.
const

Properties

end int
The position after the last character of the syntactic entity.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
length int
The number of chracters composing the syntactic entity.
no setteroverride
lexeme String
The string representation of the token.
final
offset int
The offset in which the token was scanned.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TokenType
The type of the 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 other) bool
The equality operator.
inherited