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
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.ControlExpressionExpressionNodeA numeric expression that resolves to the loop control variable.
StartExpressionExpressionNodeA numeric expression that evaluates to the initial value of the loop counter.
EndExpressionExpressionNodeA numeric expression that evaluates to the final value of the loop counter.
StepExpressionExpressionNodeA numeric expression that evaluates to the iteration increment of the control variable.
BodyStatementBlockThe 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
ControlExpression
A numeric expression that resolves to the loop control variable.
public ExpressionNode ControlExpression { get; init; }
Property Value
EndExpression
A numeric expression that evaluates to the final value of the loop counter.
public ExpressionNode EndExpression { get; init; }
Property Value
StartExpression
A numeric expression that evaluates to the initial value of the loop counter.
public ExpressionNode StartExpression { get; init; }
Property Value
StepExpression
A numeric expression that evaluates to the iteration increment of the control variable.
public ExpressionNode StepExpression { get; init; }