refactor: 函数体编译链迁出 emit.rs 独立成 function_body 模块

This commit is contained in:
2026-09-15 21:42:31 +00:00
parent 5efc64dc71
commit 4c9d3f2873
3 changed files with 710 additions and 692 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ pub mod emit_ctx;
mod emit_log;
mod errors;
pub mod expr;
mod function_body;
pub mod module;
pub mod prepass;
pub mod shared;
@@ -20,8 +21,9 @@ pub mod stmt;
pub mod symbol_table;
pub use compile_ctx::CompileCtx;
pub use emit::Emitter;
pub use emit::{is_anonymous_function_definition, is_int_literal, is_side_effect_free};
pub use emit::{Emitter, FunctionBodyContext, ParamSpec};
pub use emit_ctx::LabelScope;
pub use function_body::{FunctionBodyContext, ParamSpec};
pub use oxide_bytecode::module::Constant;
pub use oxide_parser::{AssignmentOperator, BinaryOperator, UnaryOperator};