Package org.ek9lang.compiler.phase3
Class ResolveFunctionOrDelegateByNameOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.ResolveFunctionOrDelegateByNameOrError
- All Implemented Interfaces:
Consumer<EK9Parser.IdentifierContext>
final class ResolveFunctionOrDelegateByNameOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.IdentifierContext>
Used for resolving a function (by just name) or a variable that is a function delegate.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionResolveFunctionOrDelegateByNameOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Searches for an identifier and issues an error if it is not resolved. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
ResolveFunctionOrDelegateByNameOrError
ResolveFunctionOrDelegateByNameOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Searches for an identifier and issues an error if it is not resolved. So identifiers are a little ambiguous unlike identifierReferences (which must be present). identifiers can be optional in some contexts (like named argument when calling methods and functions). Also in dynamic classes and functions with variable capture.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.IdentifierContext>
-