🧹 Major warning cleanup: 200+ → 102 warnings (50% reduction)

- Fix TokenType enum naming convention (SNAKE_CASE → CamelCase)
- Remove 60+ unused imports across multiple modules
- Clean up interpreter, backend, and box modules
- LLVM build now passes with significantly fewer warnings
This commit is contained in:
Selfhosting Dev
2025-09-11 16:24:18 +09:00
parent d72015c5c1
commit c6a8d0b686
13 changed files with 80 additions and 93 deletions

View File

@ -7,18 +7,14 @@
* Typical Callers: runner (VM backend), instruction handlers (vm_instructions)
*/
use crate::mir::{ConstValue, ValueId, BasicBlockId, MirModule, MirFunction, MirInstruction};
use crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox};
use crate::mir::{ValueId, BasicBlockId, MirModule};
use std::collections::HashMap;
use std::sync::Arc;
use crate::runtime::NyashRuntime;
use crate::scope_tracker::ScopeTracker;
// MirModule is already imported via crate::mir at top
use crate::instance_v2::InstanceBox;
use super::vm_phi::LoopExecutor;
use std::time::Instant;
use super::frame::ExecutionFrame;
use super::control_flow;
// Phase 9.78a: Import necessary components for unified Box handling
// TODO: Re-enable when interpreter refactoring is complete