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
ExpressionBinaryOperationNodeA check-in expression, where the LHS is the variable to store the iterated values and RHS is the collection to iterate.
BodyNodeThe body of the loop.
StartPositionPositionThe starting Position of the ForEachNode.
EndPositionPositionThe 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; }