Table of Contents

Class GoSubStatementNode

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

Represents a statement that pushes the next instruction offset to the local return stack, then moves the current instruction pointer to a specified label.

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

Constructors

GoSubStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode)

Represents a statement that pushes the next instruction offset to the local return stack, then moves the current instruction pointer to a specified label.

public GoSubStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode LabelExpression)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

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

LabelExpression ExpressionNode

An expression that resolves to the local label this statement jumps to.

Properties

LabelExpression

An expression that resolves to the local label this statement jumps to.

public ExpressionNode LabelExpression { get; init; }

Property Value

ExpressionNode