GenericParameterDecl
public struct GenericParameterDecl : SingleEntityDecl, ConstrainedGenericTypeDecl
A generic parameter declaration.
-
Declaration
Swift
public static let constructDescription: String -
The introducer of a generic parameter declaration.
See moreDeclaration
Swift
public enum Introducer : Codable, Sendable -
Declaration
Swift
public let site: SourceRange -
The parameter’s introducer, if any.
Declaration
Swift
public let introducer: SourceRepresentable<Introducer>? -
The identifier of the parameter.
Declaration
Swift
public let identifier: SourceRepresentable<Identifier> -
The conformances listed in the declaration.
If this list contains exactly one name referring to a type, then
selfdeclares a value parameter of that type. Otherwise, it declares a generic type parameter and the names of this list refer to the traits to which it must conform.Declaration
Swift
public let conformances: [NameExpr.ID] -
The default value of the declaration, if any.
Declaration
Swift
public let defaultValue: AnyExprID? -
Undocumented
Declaration
Swift
public init( introducer: SourceRepresentable<Introducer>?, identifier: SourceRepresentable<Identifier>, conformances: [NameExpr.ID] = [], defaultValue: AnyExprID? = nil, site: SourceRange ) -
Declaration
Swift
public var baseName: String { get } -
trueiffselfis denotes a variable that ranges over types.Declaration
Swift
public var isTypeKinded: Bool { get }
View on GitHub