- Created joinir_function_converter.rs (~133 lines): Function-level conversion - Created joinir_block_converter.rs (~691 lines): Block-level conversion - Reduced convert.rs from 943 → 120 lines (87% reduction) - Total: 944 lines (original 943 lines, minimal overhead) - Separation of concerns: Function vs Block responsibilities - All handlers moved to block_converter for better organization - Maintained backward compatibility with existing API - Build successful, simple tests passing
1.3 KiB
1.3 KiB
ResultBox Migration TODO (Phase 9.78h follow-up)
Status: Legacy TODO(状態スナップショット)
Note: 実際の移行状況・今後の計画はRESULTBOX関連のコードとロードマップ側を正とし、このメモは Phase 9.78h 時点のタスク列挙の記録としてのみ保持しています。
Goal: fully migrate from legacy box_trait::ResultBox to boxes::result::NyashResultBox (aka boxes::ResultBox).
Current usages (grep snapshot)
- src/backend/vm.rs
- Handles both new
NyashResultBoxand legacybox_trait::ResultBoxfor.is_ok/.get_value/.get_error(deprecation suppressed)。
- Handles both new
Proposed steps (small, incremental)
- Step 1: Keep dual handling but gate legacy path with feature flag or cfg for deprecation-only builds(任意)。
- Step 2: Audit call sites that construct legacy ResultBox; replace with
boxes::result::NyashResultBoxconstructors。 - Step 3: Remove legacy path from VM once no legacy constructors remain。
- Step 4: Delete/Archive legacy
box_trait::ResultBox(テスト緑後)。
Notes
- New API already aliased:
pub type ResultBox = NyashResultBox;so external references may transparently resolve after migration。 - Keep migration scoped: do not mix with unrelated refactors。
Last updated: 2025-08-25