DeclReference
public enum DeclReference : Hashable, Sendable
extension DeclReference: Monotonic
A reference to a declaration.
-
A member reference’s qualification.
See moreDeclaration
Swift
public indirect enum Receiver : Hashable, Sendable -
A direct reference.
Declaration
Swift
case direct(AnyDeclID, GenericArguments) -
A reference to a member declaration bound to a receiver.
Declaration
Swift
case member(AnyDeclID, GenericArguments, Receiver) -
A reference to an initializer used as a constructor.
Declaration
Swift
case constructor(InitializerDecl.ID, GenericArguments) -
A reference to the built-in module.
Declaration
Swift
case builtinModule -
A reference to a built-in type.
Declaration
Swift
case builtinType -
A reference to a built-in function.
Declaration
Swift
case builtinFunction(BuiltinFunction) -
A reference to a compiler-known type.
Declaration
Swift
case compilerKnownType -
Converts a direct initializer reference to a constructor reference.
Declaration
Swift
public init?(constructor other: DeclReference) -
Accesses the referred declaration if
selfis.direct,.member, or.constructor.Declaration
Swift
public var decl: AnyDeclID? { get } -
Undocumented
Declaration
Swift
public var arguments: GenericArguments { get } -
Returns a copy of
selfin which the generic arguments of the referred declaration and that of its receiver (if any) have been mutated by applyingmodifytom.Declaration
Swift
public func modifyingArguments<M>( mutating m: inout M, _ modify: (inout M, GenericArguments.Value) -> GenericArguments.Value ) -> Self
View on GitHub