refactor(compiler): remove simple expression count helpers

This commit is contained in:
爱特每羊队
2026-08-05 01:10:03 +08:00
parent 3ce7fd587d
commit faa326c039
11 changed files with 1 additions and 193 deletions
@@ -5,14 +5,6 @@ mod array;
mod object_literal;
impl Compiler {
pub(crate) fn count_object_domain(&self, expr: &Expression, ctx: &mut CompileCtx) {
match expr {
Expression::ObjectExpression(_) => self.count_object_expression(expr, ctx),
Expression::ArrayExpression(_) => self.count_array_expression(expr, ctx),
_ => {}
}
}
pub(crate) fn emit_object_domain(&self, expr: &Expression, ctx: &mut CompileCtx) -> Result<u8, String> {
match expr {
Expression::ObjectExpression(obj) => self.emit_object_expression(obj, ctx),