swift

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSwiftTypeIdentifiers

func ExtractSwiftTypeIdentifiers(sourceCode []byte) []string

ExtractSwiftTypeIdentifiers returns referenced type-like identifiers in Swift source.

func IsTestFile

func IsTestFile(filePath string) bool

IsTestFile reports whether the given Swift path is a test file.

func ParseSwiftTopLevelTypeNames

func ParseSwiftTopLevelTypeNames(sourceCode []byte) []string

ParseSwiftTopLevelTypeNames returns top-level type-like declaration names in Swift source.

func ResolveSwiftProjectImports

func ResolveSwiftProjectImports(
	absPath string,
	filePath string,
	suppliedFiles map[string]bool,
	contentReader vcs.ContentReader,
) ([]string, error)

Types

type Module

type Module struct{}

func (Module) Extensions

func (Module) Extensions() []string

func (Module) IsTestFile

func (Module) IsTestFile(filePath string, _ vcs.ContentReader) bool

func (Module) Maturity

func (Module) Maturity() langsupport.MaturityLevel

func (Module) Name

func (Module) Name() string

func (Module) NewResolver

func (Module) NewResolver(ctx *langsupport.Context, contentReader vcs.ContentReader) langsupport.Resolver

type SwiftImport

type SwiftImport struct {
	Path string
}

SwiftImport represents an import in a Swift file.

func ParseSwiftImports

func ParseSwiftImports(sourceCode []byte) ([]SwiftImport, error)

ParseSwiftImports parses Swift source code and extracts imports.

func SwiftImports

func SwiftImports(filePath string) ([]SwiftImport, error)

SwiftImports parses a Swift file and returns its imports.

Jump to

Keyboard shortcuts

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