refactor: 移除迭代计数辅助

This commit is contained in:
2026-08-05 01:23:39 +08:00
parent fd978b7ef8
commit c4ea84bda1
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) {