pub fn chunk_code(
source: &str,
filename: &str,
max_chunk_size: usize,
) -> Vec<CodeChunk>Expand description
Chunk source code using AST analysis.
When tree-sitter features are enabled, uses grammar-based parsing for accurate AST boundaries. Falls back to heuristic-based parsing otherwise.