Versions in this module Expand all Collapse all v0 v0.1.159 May 3, 2026 v0.1.158 May 2, 2026 v0.1.157 May 2, 2026 v0.1.156 Apr 24, 2026 v0.1.155 Apr 24, 2026 Changes in this version + func Register(lang languages.Language, cfg *LanguageConfig) + type Client interface + Close func(ctx context.Context) error + Definition func(ctx context.Context, file string, line, col int) ([]LocationResult, error) + Diagnostics func(ctx context.Context, file string) ([]DiagnosticResult, error) + Hover func(ctx context.Context, file string, line, col int) (*HoverResult, error) + ListSymbols func(ctx context.Context, file string) ([]*codev0.Symbol, error) + NotifyChange func(ctx context.Context, file string, content string) error + NotifySave func(ctx context.Context, file string) error + References func(ctx context.Context, file string, line, col int) ([]LocationResult, error) + func NewClient(ctx context.Context, lang languages.Language, sourceDir string) (Client, error) + type DiagnosticResult struct + Column int32 + EndColumn int32 + EndLine int32 + File string + Line int32 + Message string + Severity string + Source string + type HoverResult struct + Content string + Language string + type LanguageConfig struct + ExtractSymbols SymbolExtractor + FileExtensions []string + Grammar func() *sitter.Language + LanguageID string + SkipDirs []string + SkipSuffixes []string + func Lookup(lang languages.Language) *LanguageConfig + type LocationResult struct + Column int + Confidence float32 + EndColumn int + EndLine int + File string + Line int + Source string + type Parser struct + func NewParser(lang languages.Language) (*Parser, error) + func (p *Parser) Config() *LanguageConfig + func (p *Parser) ParseBytes(ctx context.Context, relPath string, content []byte) ([]*codev0.Symbol, error) + func (p *Parser) ParseBytesAll(ctx context.Context, relPath string, content []byte) (syms []*codev0.Symbol, tree *sitter.Tree, err error) + func (p *Parser) ParseBytesWithDiagnostics(ctx context.Context, relPath string, content []byte) (syms []*codev0.Symbol, diags []DiagnosticResult, err error) + type SymbolExtractor func(tree *sitter.Tree, content []byte, relPath string) []*codev0.Symbol