refactor: 拆分 counter statement 计数分发
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user