Expand description
Common tree-sitter traversal utilities shared across language parsers.
Provides functions to create RawNode entries and to recursively walk
a [tree_sitter::Tree] with a language-specific node classifier. Using
this module avoids duplicating the traversal logic for each supported
language.
Functions§
- child_
of_ kind - Find the first direct child of
nodewhosekind()equalskind. - push_
node - Create a
RawNodefrom the supplied metadata and append it tofacts. - traverse_
node - Generic recursive traversal of a tree-sitter sub‑tree.