OperatorToken class

A token for operators.

Inheritance

Constructors

OperatorToken(ComputeContext context, {required OperatorTokenType 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
operator Operator
The held operator.
latefinal
rawValue String
The raw value of the token.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type OperatorTokenType
The type of the token.
finalinherited

Methods

compute(ComputeContext ctx) Result
Computes the value(s) stored in this object into a Result.
inherited
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