Class CountNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a count expression.
public record CountNode : Node
- Inheritance
-
objectCountNode
- Inherited Members
Constructors
CountNode(Node, Node?, Node?, Node?, Node, Position, Position)
The Node structure for a count expression.
public CountNode(Node To, Node? From, Node? Step, Node? IterationVariable, Node Body, Position StartPosition, Position EndPosition)
Parameters
To
NodeThe amount to count to.
From
NodeThe amount to count from - optional.
Step
NodeThe increment of each iteration - optional.
IterationVariable
NodeThe variable to store the iteration number in - optional.
Body
NodeThe body of the count loop.
StartPosition
PositionEndPosition
Position
Properties
Body
The body of the count loop.
public Node Body { get; init; }
Property Value
From
The amount to count from - optional.
public Node? From { get; init; }
Property Value
IterationVariable
The variable to store the iteration number in - optional.
public Node? IterationVariable { get; init; }
Property Value
Step
The increment of each iteration - optional.
public Node? Step { get; init; }
Property Value
To
The amount to count to.
public Node To { get; init; }