AssociatedTypeDecl
public struct AssociatedTypeDecl : SingleEntityDecl, ConstrainedGenericTypeDecl
An associated type declaration.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public let site: SourceRange -
The site of the declaration’s introducer.
Declaration
Swift
public let introducerSite: SourceRange -
The identifier of the type.
Declaration
Swift
public let identifier: SourceRepresentable<Identifier> -
The conformances listed in the declaration.
Declaration
Swift
public let conformances: [NameExpr.ID] -
The where clause of the declaration, if any.
Declaration
Swift
public let whereClause: SourceRepresentable<WhereClause>? -
The default value of the declaration, if any.
Declaration
Swift
public let defaultValue: AnyExprID? -
Creates an instance with the given properties.
Declaration
Swift
public init( introducerSite: SourceRange, identifier: SourceRepresentable<Identifier>, conformances: [NameExpr.ID], whereClause: SourceRepresentable<WhereClause>?, defaultValue: AnyExprID?, site: SourceRange ) -
Declaration
Swift
public var baseName: String { get }
View on GitHub