Class ASTStmtSwitch
java.lang.Object
io.github.protasm.jvmud.compiler.parser.ast.ASTNode
io.github.protasm.jvmud.compiler.parser.ast.ASTStatement
io.github.protasm.jvmud.compiler.parser.ast.stmt.ASTStmtSwitch
AST node for an LPC
switch statement.
Case labels may be either exact values, such as case 3:, or inclusive ranges,
such as case 1..2:. The range form is part of common LPC switch syntax and is kept
explicit here so lowering can preserve fallthrough and default handling without rewriting the
source-level shape.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOnecaseordefaultlabel and the statements owned by that label. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionASTStmtSwitch(int line, ASTExpression expression, List<ASTStmtSwitch.SwitchCase> cases) -
Method Summary
Methods inherited from class ASTNode
accept, className, line, setSourceOrder, sourceOrder
-
Constructor Details
-
ASTStmtSwitch
-
-
Method Details
-
expression
-
cases
-