refactor: 移除简单表达式计数辅助

This commit is contained in:
2026-08-05 01:10:03 +08:00
parent 198bb7d428
commit dfc14cfce9
11 changed files with 1 additions and 193 deletions
@@ -1,13 +1,6 @@
use crate::compiler::{CompileCtx, Compiler};
use oxide_parser::Expression;
impl Compiler {
pub(crate) fn count_parenthesized_expression(&self, expr: &Expression, ctx: &mut CompileCtx) {
if let Expression::ParenthesizedExpression(p) = expr {
self.count_expression(&p.expression, ctx);
}
}
pub(crate) fn emit_parenthesized_expression(
&self, p: &oxide_parser::ParenthesizedExpression, ctx: &mut CompileCtx,
) -> Result<u8, String> {