Expand description
Tree-sitter parser lifecycle and parse quality metrics.
Maintains a thread-local pool of Parser instances (one per
language) to avoid re-initializing grammars. Provides parse_tree
for single-file parsing and error_ratio for parse quality estimation.
Functionsยง
- ast_
node_ count - Count total tree-sitter nodes (named + anonymous) in a parse tree.