Class ResolveMethodOnAggregateOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ResolveMethodOnAggregateOrError
- All Implemented Interfaces:
Function<MethodOnAggregateData, MethodSymbol>
final class ResolveMethodOnAggregateOrError
extends TypedSymbolAccess
implements Function<MethodOnAggregateData, MethodSymbol>
Resolves a method (by name and call arguments) within a given scope, emitting an error if it
cannot be resolved or is ambiguous.
This centralises the 'extract argument types; only search when every argument is typed; build a
MethodSymbolSearch and delegate to ResolveMethodOrError' body that was otherwise repeated
verbatim in several call-resolvers. Callers keep their own caller-specific tails (for example
ACCESSED tagging) around the result.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionResolveMethodOnAggregateOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
ResolveMethodOnAggregateOrError
ResolveMethodOnAggregateOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<MethodOnAggregateData, MethodSymbol>
-