TranslationUnit
public struct TranslationUnit : Node, LexicalScope
A collection of declarations at the top-level of a source file.
-
Declaration
Swift
public let site: SourceRange -
The declarations in this unit.
Declaration
Swift
public let decls: [AnyDeclID] -
Creates an instance with the given properties.
Declaration
Swift
public init(decls: [AnyDeclID], site: SourceRange) -
Declaration
Swift
public func validateForm(in ast: AST, reportingDiagnosticsTo log: inout DiagnosticSet)
View on GitHub