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, or null when the loop declares no Step clause (MS-VBAL's implicit default of 1 is a runtime concern, not a syntax one).

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, or null when the loop declares no Step clause (MS-VBAL's implicit default of 1 is a runtime concern, not a syntax one).

public ExpressionNode? StepExpression { get; init; }

Property Value

ExpressionNode