Expand description
Phase 2: AST parsing and strategy extraction.
Uses tree-sitter to parse source files and pre-compute Full/NoTests/Summary strategy variants with token counts.
Modules§
- lang
- Per-language parser implementations.
- strategy
- Strategy engine: byte-range slicing for NoTests and Summary modes.
Structs§
- Parsed
File - A parsed file with pre-computed strategy data for all output modes.
- Strategy
Data - Pre-computed content and token count for a single strategy.
Enums§
- Language
- Supported programming languages.
Traits§
- Language
Parser - Trait for language-specific parsers.
Functions§
- detect_
language - Detect the language from a file extension.
- parse_
file - Parse a discovered file into a
ParsedFile.