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
@@ -2,12 +2,6 @@ use crate::compiler::{CompileCtx, Compiler};
use oxide_parser::Statement;
impl Compiler {
pub(super) fn count_expression_statement(
&self, stmt: &oxide_parser::ExpressionStatement<'_>, ctx: &mut CompileCtx,
) {
self.count_expression(&stmt.expression, ctx);
}
fn emit_expression_statement(&self, stmt: &Statement, ctx: &mut CompileCtx) -> Result<Option<u8>, String> {
let Statement::ExpressionStatement(es) = stmt else {
return Ok(None);