Class ProcessCommonMethodsOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase1.ProcessCommonMethodsOrError
- All Implemented Interfaces:
BiConsumer<MethodSymbol, EK9Parser.MethodDeclarationContext>
final class ProcessCommonMethodsOrError
extends RuleSupport
implements BiConsumer<MethodSymbol, EK9Parser.MethodDeclarationContext>
Checks what only a METHOD declaration can get wrong, in every method context: 'default' on a method that is not a
constructor, the access modifier, and the constructor rules. What every method AND operator is checked for is
OperationDeclarationChecks, run straight after this.-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionProcessCommonMethodsOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MethodSymbol method, EK9Parser.MethodDeclarationContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
ProcessCommonMethodsOrError
ProcessCommonMethodsOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<MethodSymbol, EK9Parser.MethodDeclarationContext>
-