Class ValidPreFlowAndControlOrError
java.lang.Object
org.ek9lang.compiler.phase1.ValidPreFlowAndControlOrError
- All Implemented Interfaces:
Consumer<EK9Parser.PreFlowAndControlContext>
final class ValidPreFlowAndControlOrError
extends Object
implements Consumer<EK9Parser.PreFlowAndControlContext>
Because the grammar for pre-flow and control allows both the pre-flow and the control to be omitted
it is necessary to check that at least one part is present.
ifControlBlock switchStatementExpression
-
Constructor Details
-
ValidPreFlowAndControlOrError
ValidPreFlowAndControlOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.PreFlowAndControlContext>
-