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
resolvedis 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
componentsis not empty. -
The result of name resolution for a single name component.
See moreDeclaration
Swift
struct ResolvedComponent : Sendable -
A candidate found by name resolution.
See moreDeclaration
Swift
struct Candidate : Sendable -
A set of candidates found by name resolution.
See moreDeclaration
Swift
struct CandidateSet : ExpressibleByArrayLiteral, Sendable
View on GitHub