Commit f5f5d5c
refactor: extract helpers, rename for clarity, fix types, remove dead code
- Add fail() helper (always throws) replacing 7 instances of inline error handling
- Rename strip-asserts → code-transforms, cleanDiffMeta → cleanMeta
- Extract handleDiff/handleDiffStep from visitor with shared ctx object
- Extract parseFlags for DRY flag parsing
- Fix PRESET_MARKERS type (RegionMarker per key, not RegionMarker[])
- Remove dead code branches from simplified fail() flow
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2f377eb commit f5f5d5c
5 files changed
Lines changed: 168 additions & 167 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments