Documentation
¶
Overview ¶
Package adapter provides tree-sitter parsing adapters that extract symbols, relations, and diagnostics from Go, TypeScript, JavaScript, and Rust source files.
Index ¶
- type GoAdapter
- func (adapter GoAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
- func (adapter GoAdapter) ParseFilesWithProgress(files []models.ScannedSourceFile, rootPath string, ...) ([]models.ParsedFile, error)
- func (GoAdapter) Supports(language models.SupportedLanguage) bool
- type RustAdapter
- func (adapter RustAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
- func (adapter RustAdapter) ParseFilesWithProgress(files []models.ScannedSourceFile, rootPath string, ...) ([]models.ParsedFile, error)
- func (RustAdapter) Supports(language models.SupportedLanguage) bool
- type TSAdapter
- func (adapter TSAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
- func (adapter TSAdapter) ParseFilesWithProgress(files []models.ScannedSourceFile, rootPath string, ...) ([]models.ParsedFile, error)
- func (TSAdapter) Supports(language models.SupportedLanguage) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoAdapter ¶
type GoAdapter struct{}
GoAdapter parses Go source files into graph nodes and relations.
func (GoAdapter) ParseFiles ¶
func (adapter GoAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
ParseFiles parses Go source files into graph nodes, relations, and diagnostics.
func (GoAdapter) ParseFilesWithProgress ¶
func (adapter GoAdapter) ParseFilesWithProgress( files []models.ScannedSourceFile, rootPath string, report func(models.ScannedSourceFile), ) ([]models.ParsedFile, error)
ParseFilesWithProgress parses Go files and reports one progress tick per file.
type RustAdapter ¶ added in v0.0.5
type RustAdapter struct{}
RustAdapter parses Rust source files into graph nodes, relations, and diagnostics.
func (RustAdapter) ParseFiles ¶ added in v0.0.5
func (adapter RustAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
ParseFiles parses Rust source files into graph nodes, relations, and diagnostics.
func (RustAdapter) ParseFilesWithProgress ¶ added in v0.0.5
func (adapter RustAdapter) ParseFilesWithProgress( files []models.ScannedSourceFile, rootPath string, report func(models.ScannedSourceFile), ) ([]models.ParsedFile, error)
ParseFilesWithProgress parses Rust files and reports one progress tick per file.
func (RustAdapter) Supports ¶ added in v0.0.5
func (RustAdapter) Supports(language models.SupportedLanguage) bool
Supports reports whether the adapter handles the provided language.
type TSAdapter ¶
type TSAdapter struct{}
TSAdapter parses TypeScript, TSX, JavaScript, and JSX source files.
func (TSAdapter) ParseFiles ¶
func (adapter TSAdapter) ParseFiles(files []models.ScannedSourceFile, rootPath string) ([]models.ParsedFile, error)
ParseFiles parses TS/JS source files into graph nodes, relations, and diagnostics.
func (TSAdapter) ParseFilesWithProgress ¶
func (adapter TSAdapter) ParseFilesWithProgress( files []models.ScannedSourceFile, rootPath string, report func(models.ScannedSourceFile), ) ([]models.ParsedFile, error)
ParseFilesWithProgress parses TS/JS files and reports one progress tick per file.