Class VariableAssignmentNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for assigning a value to a variable in the context.
public record VariableAssignmentNode : Node
- Inheritance
-
objectVariableAssignmentNode
- Inherited Members
Constructors
VariableAssignmentNode(Node, TokenType, Node, AccessMod, Position, Position)
The Node structure for assigning a value to a variable in the context.
public VariableAssignmentNode(Node Variable, TokenType AssignmentOperator, Node Value, AccessMod AccessibilityModifiers, Position StartPosition, Position EndPosition)
Parameters
Variable
NodeThe variable to be assigned to.
AssignmentOperator
TokenTypeThe operation TokenType, if not Colon, between the existing value of
Variable
andValue
. The result of the operation will be assigned toVariable
.Value
NodeThe value to be assigned to Variable.
AccessibilityModifiers
AccessModThe accessibility modifiers for the variable assignment operation.
StartPosition
PositionThe starting Position of the VariableAssignmentNode.
EndPosition
PositionThe ending Position of the VariableAssignmentNode.
Properties
AccessibilityModifiers
The accessibility modifiers for the variable assignment operation.
public AccessMod AccessibilityModifiers { get; init; }
Property Value
AssignmentOperator
The operation TokenType, if not Colon, between the existing value of Variable
and Value
. The result of the operation will be assigned to Variable
.
public TokenType AssignmentOperator { get; init; }
Property Value
Value
The value to be assigned to Variable.
public Node Value { get; init; }
Property Value
Variable
The variable to be assigned to.
public Node Variable { get; init; }