refactor: 移除语句计数辅助

This commit is contained in:
2026-08-05 01:03:42 +08:00
parent c4ea281985
commit 198bb7d428
11 changed files with 4 additions and 92 deletions
@@ -18,8 +18,6 @@ impl Compiler {
pub(crate) fn count_basic(&self, stmt: &Statement, ctx: &mut CompileCtx) {
match stmt {
Statement::ExpressionStatement(es) => self.count_expression_statement(es, ctx),
Statement::ReturnStatement(ret) => self.count_return_statement(ret, ctx),
Statement::BreakStatement(_) => self.count_break_statement(ctx),
Statement::ContinueStatement(_) => self.count_continue_statement(ctx),
Statement::LabeledStatement(ls) => self.count_labeled_statement(ls, ctx),