Skip to main content

Module tree_sitter

Module tree_sitter 

Source
Expand description

Tree-sitter integration for intelligent code parsing.

This module provides:

  • Signature extraction (function/class signatures without bodies)
  • Smart truncation (truncate at AST boundaries)
  • Structure extraction (imports, exports, symbol counts)

Feature-gated: Only compiled when one of the tree-sitter-* features is enabled.

Functionsยง

extract_signatures_for_file
extract_structure_for_file
find_smart_truncation_point
get_language_for_path
is_supported_extension