Versions in this module Expand all Collapse all v0 v0.10.0 Jul 11, 2026 v0.9.0 May 5, 2026 Changes in this version + var CSpec = &LangSpec + var CppSpec = &LangSpec + var GoSpec = &LangSpec + var JavaScriptSpec = &LangSpec + var JavaSpec = &LangSpec + var KotlinSpec = &LangSpec + var LuaSpec = &LangSpec + var PHPSpec = &LangSpec + var PythonSpec = &LangSpec + var RubySpec = &LangSpec + var RustSpec = &LangSpec + var TypeScriptSpec = &LangSpec + func PackageEdgesFor(semantics LanguageSemantics, ctx PackageContext) []model.Edge + func WithFilePackages(ctx context.Context, packages map[string]string) context.Context + func WithGoImportPackages(ctx context.Context, packages map[string]string) context.Context + func WithImportPackages(ctx context.Context, packages map[string]string) context.Context + type CallRewriteContext struct + Callee string + Content []byte + FilePath string + Line int + Node *sitter.Node + Root *sitter.Node + type CallRewriteSemantics interface + CallRewriter func(ctx SemanticContext) CallRewriter + type CallRewriter interface + RewriteCall func(ctx CallRewriteContext) string + type CommentBlock struct + EndLine int + IsDocstring bool + OwnerStartLine int + StartLine int + Text string + type CommentContext struct + Content []byte + FilePath string + Nodes []model.Node + Root *sitter.Node + type CommentSemantics interface + AdditionalComments func(ctx CommentContext) []CommentBlock + type DefinitionContext struct + Content []byte + Definition *sitter.Node + DefinitionType string + FilePath string + ImplementedTypes []string + Name string + Package string + QualifiedName string + Root *sitter.Node + type DefinitionNameSemantics interface + DefinitionName func(ctx DefinitionContext) string + type DefinitionResult struct + Edges []model.Edge + Interfaces []interfaceInfo + type DefinitionSemantics interface + EnrichDefinition func(ctx DefinitionContext) DefinitionResult + type GoPackageDiscovery struct + func (GoPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type GoSemantics struct + func (GoSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + func (GoSemantics) CallRewriter(ctx SemanticContext) CallRewriter + func (GoSemantics) EnrichDefinition(ctx DefinitionContext) DefinitionResult + func (GoSemantics) PackageEdges(ctx PackageContext) []model.Edge + type JavaPackageDiscovery struct + func (JavaPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type JavaScriptPackageDiscovery struct + func (JavaScriptPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type JavaScriptSemantics struct + func (JavaScriptSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + func (JavaScriptSemantics) ImplementedTypes(ctx DefinitionContext) []string + type JavaSemantics struct + func (JavaSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + func (JavaSemantics) CallRewriter(ctx SemanticContext) CallRewriter + func (JavaSemantics) ImplementedTypes(ctx DefinitionContext) []string + type KotlinPackageDiscovery struct + func (KotlinPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type KotlinSemantics struct + func (KotlinSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + func (KotlinSemantics) CallRewriter(ctx SemanticContext) CallRewriter + func (KotlinSemantics) ImplementedTypes(ctx DefinitionContext) []string + type LangSpec struct + CallTypes []string + ClassTypes []string + ExtensionTypes []string + FunctionTypes []string + ImplTypes []string + ImportTypes []string + InterfaceTypes []string + Name string + PackageDiscovery PackageDiscovery + PackageNodeType string + Semantics LanguageSemantics + TestAttributes []string + TestPrefix string + type LanguageSemantics interface + AdditionalEdges func(ctx SemanticContext) []model.Edge + func SemanticsForLanguage(language string) LanguageSemantics + type NodeTypeMapping struct + ASTType string + NodeKind model.NodeKind + type NoopCallRewriter struct + func (NoopCallRewriter) RewriteCall(ctx CallRewriteContext) string + type NoopPackageDiscovery struct + func (NoopPackageDiscovery) DiscoverPackages(context.Context, PackageDiscoveryOptions) (map[string]PackageInfo, error) + type NoopSemantics struct + func (NoopSemantics) AdditionalEdges(SemanticContext) []model.Edge + type PackageContext struct + Files []string + ImportPackages map[string]string + Interfaces []PackageInterfaceInfo + Language string + Nodes []model.Node + Package string + type PackageDiscovery interface + DiscoverPackages func(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + func PackageDiscoveryOrDefault(spec *LangSpec) PackageDiscovery + type PackageDiscoveryOptions struct + HasParser func(ext string) bool + RootDir string + WalkFiles func(func(path, relPath string) error) error + type PackageInfo struct + Dir string + Files []string + ImportPath string + Language string + Name string + type PackageInterfaceInfo struct + Methods []string + Name string + type PackageSemantics interface + PackageEdges func(ctx PackageContext) []model.Edge + type ParseMetadata struct + Interfaces []PackageInterfaceInfo + Package string + type PythonPackageDiscovery struct + func (PythonPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type PythonSemantics struct + func (PythonSemantics) AdditionalComments(ctx CommentContext) []CommentBlock + func (PythonSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + type RelationshipSemantics interface + ImplementedTypes func(ctx DefinitionContext) []string + type RustSemantics struct + func (RustSemantics) AdditionalEdges(SemanticContext) []model.Edge + func (RustSemantics) CallRewriter(ctx SemanticContext) CallRewriter + func (RustSemantics) DefinitionName(ctx DefinitionContext) string + func (RustSemantics) ImplementedTypes(ctx DefinitionContext) []string + type SemanticContext struct + Content []byte + FilePath string + ImportPackages map[string]string + Interfaces []interfaceInfo + Nodes []model.Node + Package string + Root *sitter.Node + type TypeScriptPackageDiscovery struct + func (TypeScriptPackageDiscovery) DiscoverPackages(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type TypeScriptSemantics struct + func (TypeScriptSemantics) AdditionalEdges(ctx SemanticContext) []model.Edge + func (TypeScriptSemantics) CallRewriter(ctx SemanticContext) CallRewriter + func (TypeScriptSemantics) ImplementedTypes(ctx DefinitionContext) []string + type Walker struct + func NewWalker(spec *LangSpec, opts ...WalkerOption) *Walker + func (w *Walker) Close() + func (w *Walker) ExtractComments(ctx context.Context, filePath string, content []byte) ([]CommentBlock, error) + func (w *Walker) Language() string + func (w *Walker) Parse(filePath string, content []byte) ([]model.Node, []model.Edge, error) + func (w *Walker) ParseWithComments(ctx context.Context, filePath string, content []byte) ([]model.Node, []model.Edge, []CommentBlock, error) + func (w *Walker) ParseWithCommentsAndMetadata(ctx context.Context, filePath string, content []byte) ([]model.Node, []model.Edge, []CommentBlock, ParseMetadata, error) + func (w *Walker) ParseWithContext(ctx context.Context, filePath string, content []byte) ([]model.Node, []model.Edge, error) + func (w *Walker) Spec() *LangSpec + type WalkerOption func(*Walker) + func WithLogger(l *slog.Logger) WalkerOption v0.8.5 Apr 19, 2026 v0.8.4 Apr 19, 2026