Class OnGoToStatementNode
- Namespace
- RDCore.SDK.Model.AST.Statements
- Assembly
- RDCore.SDK.dll
MS-VBAL §5.4.2.13 On...GoTo Statement — evaluates Selector, Let-coerces
it to Integer, and moves the current instruction pointer to the corresponding label
in Labels (1-based; out of range completes the statement without branching).
public record OnGoToStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<OnGoToStatementNode>
- Inheritance
-
OnGoToStatementNode
- Implements
- Inherited Members
Constructors
OnGoToStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, ImmutableArray<ExpressionNode>)
MS-VBAL §5.4.2.13 On...GoTo Statement — evaluates Selector, Let-coerces
it to Integer, and moves the current instruction pointer to the corresponding label
in Labels (1-based; out of range completes the statement without branching).
public OnGoToStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode Selector, ImmutableArray<ExpressionNode> Labels)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.SelectorExpressionNodeThe expression evaluated to select a label from Labels.
LabelsImmutableArray<ExpressionNode>The ordered list of label expressions Selector indexes into.
Properties
Labels
The ordered list of label expressions Selector indexes into.
public ImmutableArray<ExpressionNode> Labels { get; init; }
Property Value
Selector
The expression evaluated to select a label from Labels.
public ExpressionNode Selector { get; init; }