Table of Contents

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

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

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

Selector ExpressionNode

The expression evaluated to select a label from Labels.

Labels ImmutableArray<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

ImmutableArray<ExpressionNode>

Selector

The expression evaluated to select a label from Labels.

public ExpressionNode Selector { get; init; }

Property Value

ExpressionNode