refactor: 大規模リファクタリング成功!2ファイル改善

 Phase 1-2: plugin_loader_v2改善(1006→527行、47.5%削減)
- extern_functions.rs: env.*外部関数(261行)
- ffi_bridge.rs: FFI/TLV処理(158行)
- instance_manager.rs: インスタンス管理(140行)
- method_resolver.rs: メソッド解決(126行)

 Phase 3: build_method_call改善(101→50行、51%削減)
- method_call_handlers.rs: ハンドラー分離(111行)
- TypeOp重複バグ修正(18行削除)
- Single Responsibility原則遵守
- 保守性・可読性大幅向上

🎯 効果:
- 総削減: loader.rs 479行 + build_method_call 51行
- コード品質: 責任分離による保守性向上
- バグ修正: TypeOp処理の重複を解消
This commit is contained in:
Selfhosting Dev
2025-09-25 02:58:43 +09:00
parent b0b667a39d
commit 6646ea963d
6 changed files with 265 additions and 441 deletions

View File

@ -14,6 +14,7 @@ use std::collections::HashMap;
use std::collections::HashSet;
mod builder_calls;
mod call_resolution; // ChatGPT5 Pro: Type-safe call resolution utilities
mod method_call_handlers; // Method call handler separation (Phase 3)
mod decls; // declarations lowering split
mod exprs; // expression lowering split
mod exprs_call; // call(expr)