Package org.ek9lang.compiler.phase3
Class ProcessValidIdentifierReference
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ProcessValidIdentifierReference
- All Implemented Interfaces:
Function<EK9Parser.IdentifierReferenceContext,
Optional<ISymbol>>
final class ProcessValidIdentifierReference
extends TypedSymbolAccess
implements Function<EK9Parser.IdentifierReferenceContext,Optional<ISymbol>>
Ensures that 'identifierReference' is now resolved and hangs together and 'typed' or emit "not resolved" error.
Note that while the identifierReference may get resolved also see ResolveIdentifierReferenceCallOrError.
This is because the context of the identifierReference may mean that it is important to 're-resolve' it.
Indeed, for overloaded methods it probably will end up resolving to a different method.
CheckValidCall
ResolveIdentifierReferenceCallOrError
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsConstructorDescriptionProcessValidIdentifierReference
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Checks identifier reference now resolves. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
ProcessValidIdentifierReference
ProcessValidIdentifierReference(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Checks identifier reference now resolves.
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.IdentifierReferenceContext,
Optional<ISymbol>>
-