Package org.ek9lang.compiler.phase3
Class ThisOrSuperCallOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ThisOrSuperCallOrError
- All Implemented Interfaces:
Function<EK9Parser.CallContext,
MethodSymbol>
final class ThisOrSuperCallOrError
extends TypedSymbolAccess
implements Function<EK9Parser.CallContext,MethodSymbol>
Just focus on resolving 'this' or 'super' in respect to a 'call'.
For example 'this()' or 'super()', but can include parameters.
This will also look at the context of where the call is made from as well as the parameter compatibility.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionThisOrSuperCallOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
ThisOrSuperCallOrError
ThisOrSuperCallOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.CallContext,
MethodSymbol>
-