CandidateSet
struct CandidateSet : ExpressibleByArrayLiteral, Sendable
A set of candidates found by name resolution.
-
The candidates in the set.
Declaration
Swift
internal private(set) var elements: [Candidate] { get } -
The positions of candidates in
elementsthat are considered viable.Declaration
Swift
internal private(set) var viable: [Int] { get } -
Creates an instance from an array literal.
Declaration
Swift
init(arrayLiteral candidates: Candidate...) -
Inserts
cintoself.Declaration
Swift
mutating func insert(_ c: Candidate) -
Inserts the contents of
otherintoself.Declaration
Swift
mutating func formUnion(_ other: `Self`) -
Filters the viable candidates in
selfto keep those callable with givenlabels, unless no viable candidate satisfies this predicate.Declaration
Swift
mutating func filter(accepting labels: [String?])
View on GitHub