Table of Contents

Class ForStatementNode

Namespace
RDCore.SDK.Model.AST.Statements
Assembly
RDCore.SDK.dll

Represents a For...Next loop construct.

public record ForStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<ForStatementNode>
Inheritance
ForStatementNode
Implements
Inherited Members

Constructors

ForStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, ExpressionNode, ExpressionNode, ExpressionNode, StatementBlock)

Represents a For...Next loop construct.

public ForStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode ControlExpression, ExpressionNode StartExpression, ExpressionNode EndExpression, ExpressionNode StepExpression, StatementBlock Body)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

The document location (Uri+Range) of the bound expression.

ControlExpression ExpressionNode

A numeric expression that resolves to the loop control variable.

StartExpression ExpressionNode

A numeric expression that evaluates to the initial value of the loop counter.

EndExpression ExpressionNode

A numeric expression that evaluates to the final value of the loop counter.

StepExpression ExpressionNode

A numeric expression that evaluates to the iteration increment of the control variable.

Body StatementBlock

The executable statements in the body of the loop.

Properties

Body

The executable statements in the body of the loop.

public StatementBlock Body { get; init; }

Property Value

StatementBlock

ControlExpression

A numeric expression that resolves to the loop control variable.

public ExpressionNode ControlExpression { get; init; }

Property Value

ExpressionNode

EndExpression

A numeric expression that evaluates to the final value of the loop counter.

public ExpressionNode EndExpression { get; init; }

Property Value

ExpressionNode

StartExpression

A numeric expression that evaluates to the initial value of the loop counter.

public ExpressionNode StartExpression { get; init; }

Property Value

ExpressionNode

StepExpression

A numeric expression that evaluates to the iteration increment of the control variable.

public ExpressionNode StepExpression { get; init; }

Property Value

ExpressionNode