Documentation
¶
Index ¶
- func ExtractSwiftTypeIdentifiers(sourceCode []byte) []string
- func IsTestFile(filePath string) bool
- func ParseSwiftTopLevelTypeNames(sourceCode []byte) []string
- func ResolveSwiftProjectImports(absPath string, filePath string, suppliedFiles map[string]bool, ...) ([]string, error)
- type Module
- type SwiftImport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractSwiftTypeIdentifiers ¶
ExtractSwiftTypeIdentifiers returns referenced type-like identifiers in Swift source.
func IsTestFile ¶
IsTestFile reports whether the given Swift path is a test file.
func ParseSwiftTopLevelTypeNames ¶
ParseSwiftTopLevelTypeNames returns top-level type-like declaration names in Swift source.
Types ¶
type Module ¶
type Module struct{}
func (Module) Extensions ¶
func (Module) IsTestFile ¶
func (Module) IsTestFile(filePath string, _ vcs.ContentReader) bool
func (Module) Maturity ¶
func (Module) Maturity() langsupport.MaturityLevel
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.
Click to show internal directories.
Click to hide internal directories.