Package org.ek9lang.compiler.phase1
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 org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionAppropriateFunctionBodyOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(FunctionSymbol functionSymbol, EK9Parser.OperationDetailsContext 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
-
AppropriateFunctionBodyOrError
AppropriateFunctionBodyOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<FunctionSymbol,
EK9Parser.OperationDetailsContext>
-