refactor: 拆分 counter statement 计数分发

This commit is contained in:
爱特每羊队
2026-06-23 17:45:59 +08:00
parent dbc15f6d1f
commit fd11b7636a
8 changed files with 377 additions and 294 deletions
@@ -0,0 +1,11 @@
use super::*;
impl Compiler {
pub(in crate::counter) fn count_block_statement(
&self, block: &oxide_parser::BlockStatement<'_>, ctx: &mut CompileCtx,
) {
for s in &block.body {
self.count_statement(s, ctx);
}
}
}