Package org.ek9lang.compiler.phase3
Class SwitchReturnOrError
java.lang.Object
org.ek9lang.compiler.support.CheckReturns
org.ek9lang.compiler.phase3.SwitchReturnOrError
- All Implemented Interfaces:
Consumer<EK9Parser.SwitchStatementExpressionContext>
final class SwitchReturnOrError
extends CheckReturns
implements Consumer<EK9Parser.SwitchStatementExpressionContext>
Ensures that a switch is used correctly in or out of an expression.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.support.CheckReturns
errorListener
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ek9lang.compiler.support.CheckReturns
returningParamOrError
-
Constructor Details
-
SwitchReturnOrError
SwitchReturnOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.SwitchStatementExpressionContext>
-