nyash-codex
b6ed6295a3
refactor(joinir): Move Trim logic from Pattern2 to TrimLoopLowerer
Phase 180-3: Extract Pattern2 Trim/P5 logic to dedicated module
Changes:
- Pattern2: Delegated Trim processing to TrimLoopLowerer (~160 lines removed)
- Pattern2: Simplified to ~25 lines of delegation code
- TrimLoopLowerer: Implemented full logic from Pattern2 (lines 180-340)
- Net reduction: -135 lines in Pattern2 (371 lines total)
Implementation:
- LoopConditionScopeBox + LoopBodyCarrierPromoter integration
- Carrier initialization code generation (substring + whitespace check)
- Trim break condition replacement (!is_carrier)
- ConditionEnv bindings setup (carrier + original variable)
Testing:
- cargo build --release: SUCCESS (0 errors, warnings only)
- All existing Pattern2 tests: PASS
- No behavior changes, refactoring only
2025-12-08 21:07:39 +09:00
..
2025-12-05 21:11:43 +09:00
2025-12-08 21:07:39 +09:00
2025-12-05 22:23:51 +09:00
2025-12-08 18:36:13 +09:00
2025-12-05 21:06:58 +09:00