refactor: CompileCtx 状态族迁出 emit.rs 独立成 compile_ctx 模块

This commit is contained in:
2026-09-15 21:16:31 +00:00
parent 536a97eb5e
commit dc6d825cae
4 changed files with 704 additions and 686 deletions
+4 -1
View File
@@ -7,6 +7,7 @@
pub mod class;
pub mod closure;
mod compile_ctx;
pub mod emit;
pub mod emit_ctx;
mod emit_log;
@@ -17,7 +18,9 @@ pub mod shared;
pub mod stmt;
pub mod symbol_table;
pub use compile_ctx::CompileCtx;
pub use emit::{is_anonymous_function_definition, is_int_literal, is_side_effect_free};
pub use emit::{CompileCtx, Emitter, FunctionBodyContext, LabelScope, ParamSpec};
pub use emit::{Emitter, FunctionBodyContext, ParamSpec};
pub use emit_ctx::LabelScope;
pub use oxide_bytecode::module::Constant;
pub use oxide_parser::{AssignmentOperator, BinaryOperator, UnaryOperator};