Phase 143 R0: Refactor P0 to prevent if-branch explosion in P1/P2 **Key Changes**: - New: loop_if_exit_contract.rs (LoopIfExitShape, LoopIfExitThen, OutOfScopeReason) - Contract SSOT for pattern shape detection and exit action discrimination - Separated unit tests to tests/phase143_loop_if_exit_contract.rs (8 tests) - Removed embedded tests from implementation file - Updated module declarations for contract and test modules **Benefits**: - Enum-driven pattern discrimination (no if-branch explosion) - P1 extension: Add Continue via 1 enum variant + 1 match arm - P2 extension: Add else via contract fields (linear growth, not exponential) - Improved maintainability and code discoverability **Verification**: - cargo check: ✅ 0 errors - Unit tests: ✅ 8/8 passed - Documentation: ✅ Updated 10-Now.md and 30-Backlog.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Nyash Development Documentation 🔧
開発者向けの進行中タスクと開発計画ドキュメントです。
📂 ディレクトリ構造
current/
CURRENT_TASK.md- 現在進行中のタスク- アクティブな開発作業の詳細
- 最新の実装状況
roadmap/
- phases/ - フェーズ別開発計画
- phase-8/ - AST→MIR変換
- phase-9/ - VM/JIT実装
- phase-10/ - AOT最適化
- native-plan/ - ネイティブビルド計画
- 実行バックエンド統合
- パフォーマンス目標
proposals/
- RFC(Request for Comments)
- 新機能提案
- 設計ディスカッション
🎯 重要な参照先
- 進行状況:
current/CURRENT_TASK.md - 開発計画:
roadmap/phases/ - 技術提案:
proposals/ - ドキュメントのステータス/入口ポリシー:
doc-status-policy.md - JoinIR / Selfhost の入口:
current/main/01-JoinIR-Selfhost-INDEX.md
📝 注意事項
このディレクトリの内容は開発中であり、頻繁に変更されます。
安定した仕様はreference/を参照してください。