refactor(compiler): remove statement count helpers

This commit is contained in:
爱特每羊队
2026-08-05 01:03:42 +08:00
parent 638da1f481
commit 3ce7fd587d
11 changed files with 4 additions and 92 deletions
@@ -3,12 +3,6 @@ use oxide_bytecode::opcode::{self, OpCode};
use oxide_parser::{Statement, VariableDeclarationKind};
impl Compiler {
pub(crate) fn count_class_declaration(&self, class: &oxide_parser::Class<'_>, ctx: &mut CompileCtx) {
ctx.alloc_reg();
self.count_class(class, ctx);
ctx.projected_pc += 1;
}
pub(crate) fn emit_class_declaration_statement(
&self, stmt: &Statement, ctx: &mut CompileCtx,
) -> Result<Option<u8>, String> {