Package org.ek9lang.compiler.phase3
Class FunctionOverridesOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.FunctionOverridesOrError
- All Implemented Interfaces:
Consumer<FunctionSymbol>
Checks that the function correctly overrides the signature if it has a super.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionFunctionOverridesOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new function to check overriding of super (method parameters and covariance returns). -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
FunctionOverridesOrError
FunctionOverridesOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new function to check overriding of super (method parameters and covariance returns).
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<FunctionSymbol>
-