Table of Contents

Class CountNode

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

The Node structure for a count expression.

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

The amount to count to.

From Node

The amount to count from - optional.

Step Node

The increment of each iteration - optional.

IterationVariable Node

The variable to store the iteration number in - optional.

Body Node

The body of the count loop.

StartPosition Position

The starting Position of the CountNode.

EndPosition Position

The ending Position of the CountNode.

Properties

Body

The body of the count loop.

public Node Body { get; init; }

Property Value

Node

From

The amount to count from - optional.

public Node? From { get; init; }

Property Value

Node

IterationVariable

The variable to store the iteration number in - optional.

public Node? IterationVariable { get; init; }

Property Value

Node

Step

The increment of each iteration - optional.

public Node? Step { get; init; }

Property Value

Node

To

The amount to count to.

public Node To { get; init; }

Property Value

Node