NamespaceDecl
public struct NamespaceDecl : ExposableDecl, SingleEntityDecl, LexicalScope
A namespace 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 access modifier of the declaration, if any.
Declaration
Swift
public let accessModifier: SourceRepresentable<AccessModifier> -
The identifier of the namespace.
Declaration
Swift
public let identifier: SourceRepresentable<Identifier> -
The member declarations in the lexical scope of the namespace.
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>, 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