mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 11:41:13 +08:00
refactor: 函数体编译链迁出 emit.rs 独立成 function_body 模块
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user