nyash-codex
31e458e7fa
refactor(joinir): introduce CaseAContext to consolidate common lowering logic
- Add CaseAContext struct in loop_scope_shape.rs to centralize:
- LoopForm validation
- intake_loop_form invocation
- LoopScopeShape construction
- Variable name → ValueId mapping
- pinned_ids/carrier_ids/exit_args resolution
- Refactor all 4 generic_case_a.rs functions to use CaseAContext:
- lower_case_a_loop_to_joinir_for_minimal_skip_ws
- lower_case_a_loop_to_joinir_for_trim_minimal
- lower_case_a_loop_to_joinir_for_append_defs_minimal
- lower_case_a_loop_to_joinir_for_stage1_usingresolver_minimal
- Remove unused name_to_header_id field from LoopFormIntake
(was duplicate of header_snapshot)
Code reduction: ~200 lines of duplicated pattern → 4 lines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 06:32:08 +09:00
..
2025-11-24 15:02:51 +09:00
2025-11-21 06:25:17 +09:00
2025-11-21 06:25:17 +09:00
2025-11-21 06:25:17 +09:00
2025-11-25 06:32:08 +09:00
2025-11-07 21:04:01 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 14:17:02 +09:00
2025-11-21 06:25:17 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-11-21 06:25:17 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 14:17:02 +09:00
2025-11-19 08:04:43 +09:00
2025-09-17 07:43:07 +09:00
2025-11-21 06:25:17 +09:00
2025-11-22 05:33:40 +09:00
2025-11-21 06:25:17 +09:00
2025-09-17 07:43:07 +09:00
2025-11-21 06:25:17 +09:00
2025-11-24 14:17:02 +09:00
2025-11-24 14:17:02 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 14:17:02 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 14:17:02 +09:00
2025-09-17 07:43:07 +09:00
2025-11-24 15:02:51 +09:00
2025-11-22 05:33:40 +09:00
2025-11-24 15:02:51 +09:00
2025-11-24 15:02:51 +09:00
2025-09-24 09:30:42 +09:00
2025-11-24 15:02:51 +09:00
2025-11-21 06:25:17 +09:00
2025-11-17 09:45:03 +09:00
2025-11-24 15:02:51 +09:00
2025-11-21 06:25:17 +09:00
2025-11-24 15:02:51 +09:00