🧹 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:
@ -1,13 +1,10 @@
|
||||
use super::helpers::{as_float, as_int, map_type};
|
||||
use super::LLVMCompiler;
|
||||
use crate::backend::llvm::context::CodegenContext;
|
||||
use crate::box_trait::{BoolBox, IntegerBox, StringBox};
|
||||
use crate::boxes::{function_box::FunctionBox, math_box::FloatBox, null_box::NullBox};
|
||||
use crate::mir::function::MirModule;
|
||||
use crate::mir::instruction::{BinaryOp, CompareOp, ConstValue, MirInstruction, UnaryOp};
|
||||
use crate::mir::instruction::{ConstValue, MirInstruction, UnaryOp};
|
||||
use crate::mir::ValueId;
|
||||
use inkwell::context::Context;
|
||||
use inkwell::types::BasicType; // for as_basic_type_enum()
|
||||
use inkwell::{
|
||||
types::{BasicTypeEnum, FloatType, IntType, PointerType},
|
||||
values::{BasicValueEnum, FloatValue, FunctionValue, IntValue, PhiValue, PointerValue},
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user