ExpressionToken class final

One token of a source.

kind is name, number, unit, end, or the punctuation itself ((, <=, &&): a parser compares against literals it writes out anyway, and a kind enum would be a second spelling of the same set.

Constructors

ExpressionToken(String kind, String text, int line, int column, {double? number})
const

Properties

column → int
From 1.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
final
line → int
From 1.
final
number → double?
A number token's value as written, a pure number: a unit after it is a token of its own.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
As written; a unit's text without its brackets.
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