Class ResumeStatementNode
- Namespace
- RDCore.SDK.Model.AST.Statements
- Assembly
- RDCore.SDK.dll
Represents a statement that resumes error handling, optionally at a specified label (MS-VBAL §5.4.4.2).
public record ResumeStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<ResumeStatementNode>
- Inheritance
-
ResumeStatementNode
- Implements
- Inherited Members
Remarks
This statement is only legal with an active error state.
Constructors
ResumeStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode?)
Represents a statement that resumes error handling, optionally at a specified label (MS-VBAL §5.4.4.2).
public ResumeStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode? LabelExpression)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.LabelExpressionExpressionNodeWhatever expression followed
Resume, ornullfor a bareResume. MS-VBAL §5.4.4.2 carves out the line-number-label0the same way it does forOn Error GoTo 0(see OnErrorGoToStatementNode) — a sentinel, not a label to resolve. A future consumer resolving this against the module's labels must special-case it before treating it as a real label reference.
Remarks
This statement is only legal with an active error state.
Properties
LabelExpression
Whatever expression followed Resume, or null for a bare Resume. MS-VBAL
§5.4.4.2 carves out the line-number-label 0 the same way it does for On Error GoTo 0
(see OnErrorGoToStatementNode) — a sentinel, not a label to resolve. A future consumer
resolving this against the module's labels must special-case it before treating it as a real label
reference.
public ExpressionNode? LabelExpression { get; init; }