Versions in this module Expand all Collapse all v0 v0.4.0 Jun 2, 2026 Changes in this version + const DefaultParseTimeout + const KindVar + func IsAST(lang LanguageKey) bool + func IsConfigData(lang LanguageKey) bool + type CallSite struct + Callee string + Line int + type Engine struct + func NewEngine() *Engine + func (e *Engine) Parse(ctx context.Context, lang LanguageKey, src []byte) (*sitter.Tree, error) + func (e *Engine) Validate(ctx context.Context, lang LanguageKey, src []byte) error + func (e *Engine) WithTimeout(d time.Duration) *Engine + type Export struct + Kind SymbolKind + Name string + type ImportStatement struct + Alias string + Group string + Line int + Path string + Raw string + type LanguageKey string + const LangC + const LangCPP + const LangCSharp + const LangGo + const LangJSON + const LangJava + const LangJavaScript + const LangPHP + const LangPython + const LangRust + const LangTOML + const LangTSX + const LangTypeScript + const LangUnknown + const LangYAML + func DetectLanguage(path, _ string) LanguageKey + type LineRange struct + End int + Start int + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Extract(lang LanguageKey, tree *sitter.Tree, src []byte) ([]Symbol, error) + func (r *Registry) ExtractImports(lang LanguageKey, tree *sitter.Tree, src []byte) ([]ImportStatement, error) + func (r *Registry) Get(lang LanguageKey) Strategy + func (r *Registry) Register(s Strategy) + func (r *Registry) RegisterAs(key LanguageKey, s Strategy) + type Strategy interface + Extensions func() []string + Extract func(tree *sitter.Tree, src []byte) ([]Symbol, error) + ExtractImports func(tree *sitter.Tree, src []byte) ([]ImportStatement, error) + Language func() LanguageKey + type Symbol struct + Annotations []string + Body string + CallSites []CallSite + Docstring string + Exported bool + Kind SymbolKind + Modifiers []string + Name string + ParentName string + QualifiedName string + Signature string + Span LineRange + TypeParameters []string + type SymbolKind string + const KindAnnotation + const KindClass + const KindConst + const KindConstructor + const KindDecorator + const KindEnum + const KindField + const KindFile + const KindFunction + const KindInterface + const KindMethod + const KindModule + const KindNamespace + const KindOther + const KindStruct + const KindTrait + const KindType + const KindVariable