swift

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL