ProductTypeDecl
public struct ProductTypeDecl : ConformanceSource, GenericDecl, SingleEntityDecl
A (nominal) product type declaration.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public let site: SourceRange -
The site of the
typeintroducer.Declaration
Swift
public let introducerSite: SourceRange -
The access modifier of the declaration, if any.
Declaration
Swift
public let accessModifier: SourceRepresentable<AccessModifier> -
The identifier of the type.
Declaration
Swift
public let identifier: SourceRepresentable<Identifier> -
The generic clause of the declaration, if any.
Declaration
Swift
public let genericClause: SourceRepresentable<GenericClause>? -
The names of traits to which the type conforms.
Declaration
Swift
public let conformances: [NameExpr.ID] -
The member declarations in the lexical scope of the trait.
Declaration
Swift
public let members: [AnyDeclID] -
Creates an instance with the given properties.
Declaration
Swift
public init( introducerSite: SourceRange, accessModifier: SourceRepresentable<AccessModifier>, identifier: SourceRepresentable<Identifier>, genericClause: SourceRepresentable<GenericClause>?, conformances: [NameExpr.ID], members: [AnyDeclID], site: SourceRange ) -
Declaration
Swift
public var baseName: String { get } -
Declaration
Swift
public func validateForm(in ast: AST, reportingDiagnosticsTo log: inout DiagnosticSet)
View on GitHub