adapter

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package adapter provides tree-sitter parsing adapters that extract symbols, relations, and diagnostics from Go, TypeScript, JavaScript, and Rust source files.

Index

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.

func (GoAdapter) Supports

func (GoAdapter) Supports(language models.SupportedLanguage) bool

Supports reports whether the adapter handles the provided language.

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.

func (TSAdapter) Supports

func (TSAdapter) Supports(language models.SupportedLanguage) bool

Supports reports whether the adapter handles the provided language.

Jump to

Keyboard shortcuts

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