NumberToken class

A token for numbers.

Inheritance

Constructors

NumberToken({required Result value, required NumberTokenType type, required String rawValue, int globalOffset = -1})
Creates the token.

Properties

globalOffset int
Where the token is located.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
rawValue String
The raw value of the token.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type NumberTokenType
The type of the token.
finalinherited
value Result
The held value.
final

Methods

compute(ComputeContext ctx) Result
Computes the value(s) stored in this object into a Result.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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