Package org.ek9lang.compiler.phase1
Class ConsistentNamedParametersOrError
java.lang.Object
org.ek9lang.compiler.phase1.ConsistentNamedParametersOrError
- All Implemented Interfaces:
Consumer<EK9Parser.ParamExpressionContext>
final class ConsistentNamedParametersOrError
extends Object
implements Consumer<EK9Parser.ParamExpressionContext>
Checks that either all parameters are named when making calls, or none are named at all.
This is to drive consistency.
-
Constructor Details
-
ConsistentNamedParametersOrError
ConsistentNamedParametersOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
Check either all params are named or non are named.- Specified by:
accept
in interfaceConsumer<EK9Parser.ParamExpressionContext>
-