ExtensionDecl
public struct ExtensionDecl : TypeExtendingDecl
A declaration that extends a type with new members.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public let site: SourceRange -
The site of the
extensionintroducer.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 condition of the extension, if any.
Declaration
Swift
public let whereClause: SourceRepresentable<WhereClause>? -
The member declarations in the lexical scope of the extension.
Declaration
Swift
public let members: [AnyDeclID] -
Creates an instance with the given properties.
Declaration
Swift
public init( introducerSite: SourceRange, accessModifier: SourceRepresentable<AccessModifier>, subject: AnyExprID, whereClause: SourceRepresentable<WhereClause>?, members: [AnyDeclID], site: SourceRange )
View on GitHub