AssignmentNode class

An AST node representing variable assignment (variable := value).

Inheritance

Constructors

AssignmentNode(VariableNode variable, Token assignment, ValueNode value)
Creates an assignment of value to variable via assignment operator token.

Properties

afterToken → List<Token>
Closing boundary tokens.
finalinherited
assignment → Token
The assignment operator token (:= or _).
final
beforeToken → List<Token>
Opening boundary tokens.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → ValueNode
The expression evaluated and assigned.
final
variable → VariableNode
The target variable node.
final

Methods

accept(Visitor visitor) → void
Dispatches execution to visitor based on concrete node type.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
surroundWith(Token before, Token after) → void
Records enclosing before and after tokens.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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