SynthesizedFunctionDecl
public struct SynthesizedFunctionDecl : Hashable, Sendable
extension SynthesizedFunctionDecl: CustomStringConvertible
A function declaration synthesized during compilation.
-
The kind of a synthesized declaration.
See moreDeclaration
Swift
public enum Kind : Hashable, Sendable -
The type of this declaration.
Declaration
Swift
public let type: ArrowType -
The generic parameters of the declaration.
Declaration
Swift
public let genericParameters: [GenericParameterDecl.ID] -
The scope in which the declaration is defined.
Declaration
Swift
public let scope: AnyScopeID -
The kind of the declaration.
Declaration
Swift
public let kind: Kind -
Creates an instance with the given properties.
Requires
The environment oftypeis a tuple.Declaration
Swift
public init( _ kind: Kind, typed type: ArrowType, parameterizedBy genericParameters: [GenericParameterDecl.ID], in scope: AnyScopeID ) -
The type of the declaration’s receiver.
Requires
selfis a synthetic implementation of a member function.Declaration
Swift
public var receiver: AnyType { get } -
Declaration
Swift
public var description: String { get }
View on GitHub