NameResolutionResult

enum NameResolutionResult : Sendable

The result of a name resolution request.

  • Name resolution applied on the nominal prefix that doesn’t require any overload resolution. The payload contains the collections of resolved and unresolved components.

    Invariant

    resolved is not empty.

    Declaration

    Swift

    case done(resolved: [ResolvedComponent], unresolved: [NameExpr.ID])
  • Name resolution failed.

    Declaration

    Swift

    case failed
  • Name resolution couldn’t complete because the first component of the expression couldn’t be resolved without type inference. The payload contains the type of the resolved part, unless it was left implicit, and the remaining unresolved components.

    Invariant

    components is not empty.

    Declaration

    Swift

    case canceled(AnyType?, _: [NameExpr.ID])
  • The result of name resolution for a single name component.

    See more

    Declaration

    Swift

    struct ResolvedComponent : Sendable
  • A candidate found by name resolution.

    See more

    Declaration

    Swift

    struct Candidate : Sendable
  • A set of candidates found by name resolution.

    See more

    Declaration

    Swift

    struct CandidateSet : ExpressibleByArrayLiteral, Sendable