Table of Contents

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

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

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

LabelExpression ExpressionNode

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.

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; }

Property Value

ExpressionNode