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
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.LabelExpressionExpressionNodeAn 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; }