Package org.ek9lang.compiler.phase1
Class CheckInappropriateFunctionBody
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase1.CheckInappropriateFunctionBody
- All Implemented Interfaces:
BiConsumer<FunctionSymbol,
EK9Parser.OperationDetailsContext>
final class CheckInappropriateFunctionBody
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, symbolAndScopeManagement
-
Constructor Summary
ConstructorsConstructorDescriptionCheckInappropriateFunctionBody
(SymbolAndScopeManagement symbolAndScopeManagement, 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
-
CheckInappropriateFunctionBody
CheckInappropriateFunctionBody(SymbolAndScopeManagement symbolAndScopeManagement, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<FunctionSymbol,
EK9Parser.OperationDetailsContext>
-