Table of Contents

Class ForEachStatementNode

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

Represents a For Each...Next loop construct.

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

Constructors

ForEachStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, ExpressionNode, StatementBlock)

Represents a For Each...Next loop construct.

public ForEachStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode ControlExpression, ExpressionNode CollectionExpression, 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

An object or variant expression that resolves to the loop control variable.

CollectionExpression ExpressionNode

An object expression that resolves to an enumerable object (or array).

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

CollectionExpression

An object expression that resolves to an enumerable object (or array).

public ExpressionNode CollectionExpression { get; init; }

Property Value

ExpressionNode

ControlExpression

An object or variant expression that resolves to the loop control variable.

public ExpressionNode ControlExpression { get; init; }

Property Value

ExpressionNode