Versions in this module Expand all Collapse all v0 v0.1.3 Aug 30, 2026 v0.1.2 Aug 30, 2026 v0.1.1 Aug 28, 2026 v0.1.0 Aug 27, 2026 Changes in this version + const DefaultSymbolLimit + const MaxDefinitionLines + var ErrUnavailable = errors.New("analysis unavailable: workspace does not have a supported language toolchain") + type Analyzer struct + func NewAnalyzer(dir string) *Analyzer + func (a *Analyzer) Definition(ctx context.Context, symbol string) (Definition, error) + func (a *Analyzer) References(ctx context.Context, symbol string, roles []Role, limit int) (Result, error) + func (a *Analyzer) Symbols(ctx context.Context, prefix string, limit int) (SymbolResult, error) + type Definition struct + EndLine int + Kind SymbolKind + Line int + Package string + Path string + Receiver string + Signature string + Source string + SourceTruncated bool + Symbol string + type Location struct + Line int + Path string + Role Role + Symbol string + type Result struct + Complete bool + Errors int + Locations []Location + Symbol string + Truncated bool + type Role string + const RoleCaller + const RoleComparison + const RoleDefinition + const RoleImplementation + const RoleReturn + func (r Role) String() string + type Symbol struct + EndLine int + Exported bool + Kind SymbolKind + Line int + Name string + Package string + Path string + Receiver string + Signature string + type SymbolKind string + const KindConst + const KindField + const KindFunc + const KindMethod + const KindType + const KindVar + type SymbolResult struct + Complete bool + Errors int + Symbols []Symbol + Truncated bool + func FileOutline(path string) (SymbolResult, error)