Package org.ek9lang.compiler.phase2
Class ValidOperatorOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.ValidOperatorOrError
- All Implemented Interfaces:
BiConsumer<MethodSymbol,
EK9Parser.OperatorDeclarationContext>
final class ValidOperatorOrError
extends RuleSupport
implements BiConsumer<MethodSymbol,EK9Parser.OperatorDeclarationContext>
Checks operators from various contexts, typically this is delegated to other functions.
Those functions do the detail check. This does not check service operations that are marked as operators.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionValidOperatorOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operation checker. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(MethodSymbol methodSymbol, EK9Parser.OperatorDeclarationContext ctx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
ValidOperatorOrError
ValidOperatorOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new operation checker.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<MethodSymbol,
EK9Parser.OperatorDeclarationContext>
-