Documentation
¶
Overview ¶
Package swift implements the Swift source analyzer (Package.swift target + import tracking).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwiftAnalyzer ¶
func SwiftAnalyzer() *swiftAnalyzer
SwiftAnalyzer returns a Swift source analyzer (satisfies analyzer.Analyzer and analyzer.BoundaryProvider). Concrete pointer return so tests can call Boundaries without a type assertion; cmd uses the interface upcast.
Types ¶
type ImportKind ¶
type ImportKind int
ImportKind classifies a Swift import statement.
const ( ImportSystem ImportKind = iota // Apple/Swift SDK framework ImportProject // target within the same manifest ImportExternal // third-party dependency )
Import kinds classify where a Swift import resolves.
func ClassifyImport ¶
func ClassifyImport(module string, parsedManifest *manifest.Manifest) ImportKind
ClassifyImport returns the kind of a Swift import given the module name and the parsed manifest.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gen-frameworks
command
gen-frameworks fetches Apple's technologies.json and generates a Go source file containing the set of system frameworks that support Swift.
|
gen-frameworks fetches Apple's technologies.json and generates a Go source file containing the set of system frameworks that support Swift. |
|
Package manifest parses Swift Package Manager Package.swift descriptors.
|
Package manifest parses Swift Package Manager Package.swift descriptors. |
Click to show internal directories.
Click to hide internal directories.