ConformanceDecl
public struct ConformanceDecl : ConformanceSource, TypeExtendingDecl
A declaration that extends a type with new conformances.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public let site: SourceRange -
The site of the
conformanceintroducer.Declaration
Swift
public let introducerSite: SourceRange -
The access modifier of the declaration, if any.
Declaration
Swift
public let accessModifier: SourceRepresentable<AccessModifier> -
The expression of the extended type.
Declaration
Swift
public let subject: AnyExprID -
The names of traits to which conformance is declared.
Declaration
Swift
public let conformances: [NameExpr.ID] -
The condition of the conformance, if any.
Declaration
Swift
public let whereClause: SourceRepresentable<WhereClause>? -
The member declarations in the lexical scope of the conformance.
Declaration
Swift
public let members: [AnyDeclID] -
Creates an instance with the given properties.
Declaration
Swift
public init( introducerSite: SourceRange, accessModifier: SourceRepresentable<AccessModifier>, subject: AnyExprID, conformances: [NameExpr.ID], whereClause: SourceRepresentable<WhereClause>?, members: [AnyDeclID], site: SourceRange )
View on GitHub