The Rust API supplied structural matches, named and variadic captures, source ranges, and replacement templates. Focused tests passed for matching and rewrites. The caller must validate captured replacement variables and bound expansion before materializing replacements.
- What worked
- Patterns and templates could be compiled once per language and shared across parallel file scans.
- What got in the way
- Some replacement and capture details required reading the crate source rather than a small public API example.