Class CaseExpressionStatementNode
- Namespace
- RDCore.SDK.Model.AST.Statements
- Assembly
- RDCore.SDK.dll
An executable statement node that represents a Case block within a Select Case block statement.
public record CaseExpressionStatementNode : StatementNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<StatementNode>, IEquatable<CaseExpressionStatementNode>
- Inheritance
-
CaseExpressionStatementNode
- Implements
- Inherited Members
Constructors
CaseExpressionStatementNode(SyntaxNodeId, SourceLocation, ExpressionNode, StatementBlock)
An executable statement node that represents a Case block within a Select Case block statement.
public CaseExpressionStatementNode(SyntaxNodeId Identity, SourceLocation Location, ExpressionNode Expression, StatementBlock Block)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
LocationSourceLocationThe document location (
Uri+Range) of the bound expression.ExpressionExpressionNodeThe expression whose evaluation result is to be compared to the
Selectcontrol expression.BlockStatementBlockThe body of the
Caseblock.
Properties
Block
The body of the Case block.
public StatementBlock Block { get; init; }
Property Value
Expression
The expression whose evaluation result is to be compared to the Select control expression.
public ExpressionNode Expression { get; init; }
Property Value
Location
The document location (Uri+Range) of the bound expression.
public SourceLocation Location { get; init; }