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.
  • 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