Expand description
Tree-sitter wrapper utilities shared across language parsers.
Functionsยง
- collect_
children_ by_ kind - Collect all direct children of a node with the given kind.
- count_
complexity - Count decision points in a subtree for cyclomatic complexity.
- find_
child_ by_ kind - Find the first child of a node with the given kind.
- get_
node_ text - Get the text content of a tree-sitter node.
- node_
to_ span - Convert a tree-sitter node to a Span.
- parse_
with_ language - Parse source code with error recovery using tree-sitter.