mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 03:31:12 +08:00
refactor: 拆分编译流水线过程以避免逻辑漂移
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
#[allow(unused_imports)]
|
||||
use crate::compiler::{
|
||||
is_int_literal, is_side_effect_free, BinaryOperator, CompileCtx, Compiler, FunctionBodyContext, Label, ParamSpec,
|
||||
};
|
||||
#[allow(unused_imports)]
|
||||
use oxide_bytecode::module::Constant;
|
||||
#[allow(unused_imports)]
|
||||
use oxide_bytecode::opcode::{self, OpCode};
|
||||
#[allow(unused_imports)]
|
||||
use oxide_parser::{
|
||||
AssignmentOperator, ChainElement, ClassElement, Expression, ForStatementInit, LogicalOperator,
|
||||
MethodDefinitionKind, SimpleAssignmentTarget, Statement, UnaryOperator, VariableDeclarationKind,
|
||||
AssignmentOperator, AssignmentTarget, AssignmentTargetMaybeDefault, AssignmentTargetProperty, BindingPattern,
|
||||
ChainElement, Class, ClassElement, Expression, ForStatementInit, ForStatementLeft, LogicalOperator,
|
||||
MethodDefinitionKind, ObjectAssignmentTarget, PropertyKey, PropertyKind, SimpleAssignmentTarget, Statement,
|
||||
UnaryOperator, UpdateOperator, VariableDeclarationKind,
|
||||
};
|
||||
|
||||
use crate::compiler::{is_side_effect_free, CompileCtx, Compiler, Label};
|
||||
|
||||
mod expr;
|
||||
mod helper;
|
||||
mod stmt;
|
||||
pub mod helper;
|
||||
|
||||
Reference in New Issue
Block a user