-
Returns the mangled representation of
d.Declaration
Swift
public func mangled<T>(_ d: T) -> String where T : DeclID -
Returns the mangled representation of
t.Declaration
Swift
public func mangled<T>(_ t: T) -> String where T : TypeProtocol -
Returns the mangled representation of
w.Declaration
Swift
public func mangled(_ w: WitnessTable) -> String -
Returns the mangled representation of
f.Declaration
Swift
public func mangled(_ f: Function.ID) -> String -
Returns the mangled representation of
s, applyingmangleto build it.Declaration
Swift
private func mangled<T>( _ s: T, applying mangle: (T, inout Mangler) -> String ) -> String -
If
frefers to a trait member, returns the declaration of that member along with the trait in which it is defined; returnsnilotherwise.Declaration
Swift
func traitMember(referredBy f: Function.ID) -> (declaration: AnyDeclID, trait: TraitType)? -
If
frefers to the memberdof traitc, returns(d, c)ifdis a requirement, or(r, c)ifdis a default implementation of a requirementr; returnsnilotherwise.Declaration
Swift
func requirementDeclaring( memberReferredBy f: Function.ID ) -> (decl: AnyDeclID, trait: TraitType)? -
Returns a subscript bundle reference to
d, which occurs specialized byz.Declaration
Swift
func subscriptBundleReference( to d: SubscriptDecl.ID, specializedBy z: GenericArguments ) -> BundleReference<SubscriptDecl> -
Returns a table mapping a union type discriminator to its corresponding member.
Declaration
Swift
public func discriminatorToElement(in union: UnionType) -> [AnyType] -
Returns
trueiff the mangled representation ofalexicographically precedes that ofb.Declaration
Swift
private func isOrderedBefore(_ a: AnyType, _ b: AnyType) -> Bool
View on GitHub