Class AppropriateFunctionBodyOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase1.AppropriateFunctionBodyOrError
- All Implemented Interfaces:
BiConsumer<FunctionSymbol, EK9Parser.OperationDetailsContext>
final class AppropriateFunctionBodyOrError
extends RuleSupport
implements BiConsumer<FunctionSymbol, EK9Parser.OperationDetailsContext>
Checks if the body of a function is appropriate.
i.e has it correctly been marked as abstract.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionAppropriateFunctionBodyOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(FunctionSymbol functionSymbol, 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
-
AppropriateFunctionBodyOrError
AppropriateFunctionBodyOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<FunctionSymbol, EK9Parser.OperationDetailsContext>
-