Token class final

A highlighted slice [start, end) of a single line.

Constructors

Token(TokenKind kind, int start, int end)
Creates a token covering [start, end) of a line.
const

Properties

end → int
Exclusive end offset within the line.
final
hashCode → int
The hash code for this object.
no setteroverride
kind → TokenKind
The token's category.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
Inclusive start offset within the line.
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.
override