Table of Contents

Class ForEachNode

Namespace
EzrSquared.Runtime.Nodes
Assembly
ezrSquared-lib.dll

The Node structure for a for-each expression.

public record ForEachNode : Node
Inheritance
object
ForEachNode
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 BinaryOperationNode

A check-in expression, where the LHS is the variable to store the iterated values and RHS is the collection to iterate.

Body Node

The body of the loop.

StartPosition Position

The starting Position of the ForEachNode.

EndPosition Position

The ending Position of the ForEachNode.

Properties

Body

The body of the loop.

public Node Body { get; init; }

Property Value

Node

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; }

Property Value

BinaryOperationNode