Documentation
¶
Overview ¶
Package adapter provides tree-sitter parsing adapters that extract symbols, relations, and diagnostics from Go, TypeScript, and JavaScript 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 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 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.
Click to show internal directories.
Click to hide internal directories.