Documentation
¶
Index ¶
- func IsTestFile(filePath string) bool
- func IsTestFileWithContent(filePath string, contentReader vcs.ContentReader) bool
- func ResolveRustProjectImports(absPath string, filePath string, suppliedFiles map[string]bool, ...) ([]string, error)
- type Module
- func (Module) Extensions() []string
- func (Module) IsTestFile(filePath string, contentReader vcs.ContentReader) bool
- func (Module) Maturity() langsupport.MaturityLevel
- func (Module) Name() string
- func (Module) NewResolver(ctx *langsupport.Context, contentReader vcs.ContentReader) langsupport.Resolver
- type RustImport
- type RustImportKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTestFile ¶
IsTestFile reports whether the given Rust path is a test file.
func IsTestFileWithContent ¶
func IsTestFileWithContent(filePath string, contentReader vcs.ContentReader) bool
IsTestFileWithContent reports whether the given Rust path is a test file, using file content when available to confirm.
Types ¶
type Module ¶
type Module struct{}
func (Module) Extensions ¶
func (Module) IsTestFile ¶
func (Module) IsTestFile(filePath string, contentReader 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 RustImport ¶
type RustImport struct {
Path string
Kind RustImportKind
}
RustImport represents a Rust import statement or module declaration.
func ParseRustImports ¶
func ParseRustImports(sourceCode []byte) ([]RustImport, error)
ParseRustImports parses Rust source code and extracts imports.
func RustImports ¶
func RustImports(filePath string) ([]RustImport, error)
RustImports parses a Rust file and returns its imports.
type RustImportKind ¶
type RustImportKind int
RustImportKind describes the type of Rust import-like declaration.
const ( RustImportUse RustImportKind = iota RustImportExternCrate RustImportModDecl )
Click to show internal directories.
Click to hide internal directories.