Class ForEachNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a for-each expression.
public record ForEachNode : Node
- Inheritance
-
objectForEachNode
- Inherited Members
Constructors
ForEachNode(BinaryOperationNode, Node, Position, Position)
The Node structure for a for-each expression.
public ForEachNode(BinaryOperationNode Expression, Node Body, Position StartPosition, Position EndPosition)
Parameters
Expression
BinaryOperationNodeA check-in expression, where the LHS is the variable to store the iterated values and RHS is the collection to iterate.
Body
NodeThe body of the loop.
StartPosition
PositionThe starting Position of the ForEachNode.
EndPosition
PositionThe ending Position of the ForEachNode.
Properties
Body
The body of the loop.
public Node Body { get; init; }
Property Value
Expression
A check-in expression, where the LHS is the variable to store the iterated values and RHS is the collection to iterate.
public BinaryOperationNode Expression { get; init; }