Package org.ek9lang.compiler.phase3
Class ResolveMethodOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ResolveMethodOrError
- All Implemented Interfaces:
BiFunction<IToken,
MethodSearchInScope, MethodSymbol>
final class ResolveMethodOrError
extends TypedSymbolAccess
implements BiFunction<IToken,MethodSearchInScope,MethodSymbol>
Given a search for a method from an aggregate - and include supers/traits etc,
this function will try and locate the method. But if not found or ambiguous it will issue errors.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionResolveMethodOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create function with provided errorListener etc. -
Method Summary
Modifier and TypeMethodDescriptionapply
(IToken errorLocation, MethodSearchInScope searchOnAggregate) Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
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.BiFunction
andThen
-
Constructor Details
-
ResolveMethodOrError
ResolveMethodOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create function with provided errorListener etc.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<IToken,
MethodSearchInScope, MethodSymbol>
-