Table of Contents

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
object
VariableAssignmentNode
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 Node

The variable to be assigned to.

AssignmentOperator TokenType

The operation TokenType, if not Colon, between the existing value of Variable and Value. The result of the operation will be assigned to Variable.

Value Node

The value to be assigned to Variable.

AccessibilityModifiers AccessMod

The accessibility modifiers for the variable assignment operation.

StartPosition Position

The starting Position of the VariableAssignmentNode.

EndPosition Position

The ending Position of the VariableAssignmentNode.

Properties

AccessibilityModifiers

The accessibility modifiers for the variable assignment operation.

public AccessMod AccessibilityModifiers { get; init; }

Property Value

AccessMod

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

TokenType

Value

The value to be assigned to Variable.

public Node Value { get; init; }

Property Value

Node

Variable

The variable to be assigned to.

public Node Variable { get; init; }

Property Value

Node