refactor: 移除语句跳转计数辅助

This commit is contained in:
2026-08-05 01:17:22 +08:00
parent dfc14cfce9
commit fd978b7ef8
9 changed files with 28 additions and 175 deletions
@@ -15,13 +15,4 @@ impl Compiler {
_ => Ok(None),
}
}
pub(crate) fn count_basic(&self, stmt: &Statement, ctx: &mut CompileCtx) {
match stmt {
Statement::BreakStatement(_) => self.count_break_statement(ctx),
Statement::ContinueStatement(_) => self.count_continue_statement(ctx),
Statement::LabeledStatement(ls) => self.count_labeled_statement(ls, ctx),
_ => {}
}
}
}