Class AppropriateBodyOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.AppropriateBodyOrError
- All Implemented Interfaces:
BiConsumer<MethodSymbol, EK9Parser.OperationDetailsContext>
public class AppropriateBodyOrError
extends RuleSupport
implements BiConsumer<MethodSymbol, EK9Parser.OperationDetailsContext>
Checks if the body of a method/operator is appropriate.
i.e. has it been marked as abstract or default - neither of which need a body.
Emits compiler error if inappropriate.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionAppropriateBodyOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create new checker. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MethodSymbol methodSymbol, EK9Parser.OperationDetailsContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
AppropriateBodyOrError
Create new checker.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<MethodSymbol, EK9Parser.OperationDetailsContext>
-