refactor: 按逻辑归类 emit 和 count 函数,并消除通配导入

This commit is contained in:
爱特每羊队
2026-07-05 15:35:58 +08:00
parent ff6de1e4e7
commit 41552dca5a
46 changed files with 941 additions and 841 deletions
@@ -1,4 +1,6 @@
use super::*;
use crate::compiler::{CompileCtx, Compiler};
use oxide_bytecode::opcode::{self, OpCode};
use oxide_parser::Expression;
impl Compiler {
pub(crate) fn count_identifier_expression(&self, expr: &Expression, ctx: &mut CompileCtx) {