refactor(compiler): remove iteration count helpers

This commit is contained in:
爱特每羊队
2026-08-05 01:23:39 +08:00
parent 4a2bf09f78
commit b8bb208825
8 changed files with 1 additions and 188 deletions
+1 -8
View File
@@ -1286,14 +1286,7 @@ impl Compiler {
}
pub(crate) fn count_statement(&self, stmt: &Statement, ctx: &mut CompileCtx) {
match stmt {
Statement::WhileStatement(_)
| Statement::DoWhileStatement(_)
| Statement::ForStatement(_)
| Statement::ForInStatement(_)
| Statement::ForOfStatement(_) => self.count_iteration_domain(stmt, ctx),
_ => {}
}
let _ = (stmt, ctx);
}
pub(crate) fn count_expression(&self, expr: &Expression, ctx: &mut CompileCtx) {