nyash-codex
397bc77eb3
refactor(vm): StaticBoxRegistry unifies static box management
箱化モジュール化: Phase 173-B の散在した static box 管理を一元化
Before (4箇所に散在):
- static_box_decls: HashMap (AST経由のBox宣言)
- static_boxes: HashMap (実行時シングルトン)
- vm.rs Phase 173-B手動検出コード (~60行)
- method.rs static_box_decls.contains_key() 直接参照
After (StaticBoxRegistry箱に統一):
- declarations: AST経由のBox宣言を登録
- detected_boxes: MIR関数名から自動検出 (using import対応)
- instances: 遅延作成シングルトン
- naming utilities: parse/format関数
Benefits:
- vm.rs: 63行削減 (Phase 173-B手動コード削除)
- 自動検出: using import した static box も対応
- 単一責務: static box lifecycle を1箱に集約
- Fail-Fast: 存在しないBoxへのアクセスは即エラー
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 18:56:23 +09:00
..
2025-12-03 11:04:58 +09:00
2025-11-21 06:25:17 +09:00
2025-11-24 14:17:02 +09:00
2025-12-03 17:55:26 +09:00
2025-12-03 12:25:32 +09:00
2025-11-24 14:17:02 +09:00
2025-11-28 17:42:19 +09:00
2025-11-21 06:25:17 +09:00
2025-12-03 17:55:26 +09:00
2025-11-30 14:30:28 +09:00
2025-12-04 18:56:23 +09:00
2025-11-24 14:17:02 +09:00