Class SelectCaseStatementNode
- Namespace
- RDCore.SDK.Model.AST.Statements
- Assembly
- RDCore.SDK.dll
An executable statement node that represents a Select Case...End Select block.
public record SelectCaseStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<SelectCaseStatementNode>
- Inheritance
-
SelectCaseStatementNode
- Implements
- Inherited Members
Constructors
SelectCaseStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, ImmutableArray<CaseExpressionStatementNode>, CaseElseClauseStatementNode?)
An executable statement node that represents a Select Case...End Select block.
public SelectCaseStatementNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ExpressionNode ControlExpression, ImmutableArray<CaseExpressionStatementNode> CaseExpressionBlocks, CaseElseClauseStatementNode? CaseElseBlock)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the bound expression.ControlExpressionExpressionNodeThe control expression whose evaluation result each
Caserange clause gets compared to.CaseExpressionBlocksImmutableArray<CaseExpressionStatementNode>The
Caseblocks, in source order.CaseElseBlockCaseElseClauseStatementNodeThe
Case Elseblock, ornullwhen the statement declares none.
Properties
CaseElseBlock
The Case Else block, or null when the statement declares none.
public CaseElseClauseStatementNode? CaseElseBlock { get; init; }
Property Value
CaseExpressionBlocks
The Case blocks, in source order.
public ImmutableArray<CaseExpressionStatementNode> CaseExpressionBlocks { get; init; }
Property Value
ControlExpression
The control expression whose evaluation result each Case range clause gets compared to.
public ExpressionNode ControlExpression { get; init; }