Versions in this module Expand all Collapse all v0 v0.5.0 May 3, 2026 v0.4.55-fp-fix Feb 27, 2026 v0.1.3 May 27, 2026 Changes in this version + var LanguageASTNodeTypes = map[string]ASTNodeTypes + var UniversalASTNodeTypes = ASTNodeTypes + func ExtractAssignmentParts(node Node, src []byte, language string) (target, value string) + func GetAssignmentTypes() []string + func GetAssignmentTypesForLanguage(language string) []string + func GetCallTypes() []string + func GetCallTypesForLanguage(language string) []string + func GetFunctionTypes() []string + func GetIdentifierTypes() []string + func GetIdentifierTypesForLanguage(language string) []string + func GetScopeTypes() []string + func IsAssignmentNode(nodeType string) bool + func IsAssignmentNodeForLanguage(nodeType, language string) bool + func IsCallNode(nodeType string) bool + func IsCallNodeForLanguage(nodeType, language string) bool + func IsFunctionNode(nodeType string) bool + func IsFunctionNodeForLanguage(nodeType, language string) bool + func IsIdentifierNode(nodeType string) bool + func IsIdentifierNodeForLanguage(nodeType, language string) bool + func IsScopeNode(nodeType string) bool + func IsScopeNodeForLanguage(nodeType, language string) bool + func IterateChildren(node *sitter.Node, fn func(child *sitter.Node)) + func RegisterAll(r *Registry) + type ASTNodeCategory string + const ASTCategoryAssignment + const ASTCategoryCall + const ASTCategoryFunction + const ASTCategoryScope + type ASTNodeTypes struct + AssignmentTypes []string + CallTypes []string + FunctionTypes []string + IdentifierTypes []string + ScopeTypes []string + func GetASTNodeTypesForLanguage(language string) ASTNodeTypes + type Assignment struct + Column int + EndColumn int + EndLine int + LHS string + Line int + RHS *sitter.Node + RHSText string + Scope string + Snippet string + type BaseExtractor struct + func NewBaseExtractor(language string, assignmentTypes, callTypes, identifierTypes []string) *BaseExtractor + func (e *BaseExtractor) ExpressionContains(node Node, varName string, src []byte) bool + func (e *BaseExtractor) ExtractAssignments(root Node, src []byte) []Assignment + func (e *BaseExtractor) ExtractCalls(root Node, src []byte) []FunctionCall + func (e *BaseExtractor) Language() string + type CallArgument struct + Index int + Name string + Node *sitter.Node + type Extractor interface + ExpressionContains func(node Node, varName string, src []byte) bool + ExtractAssignments func(root Node, src []byte) []Assignment + ExtractCalls func(root Node, src []byte) []FunctionCall + Language func() string + type FunctionCall struct + Arguments []CallArgument + Column int + EndColumn int + EndLine int + Line int + Name string + Scope string + type Node interface + Child func(idx int) *sitter.Node + ChildCount func() uint32 + Content func(input []byte) string + EndByte func() uint32 + EndPoint func() sitter.Point + NamedChild func(idx int) *sitter.Node + NamedChildCount func() uint32 + Parent func() *sitter.Node + StartByte func() uint32 + StartPoint func() sitter.Point + Type func() string + func Wrap(n *sitter.Node) Node + type Registry struct + func NewRegistry() *Registry + func (r *Registry) GetExtractor(language string) Extractor + func (r *Registry) Register(extractor Extractor) v0.1.2 Dec 12, 2025 v0.1.1 Dec 12, 2025