refactor: emit 冗余标志参数收敛为内部推导

This commit is contained in:
2026-10-12 16:30:51 +00:00
parent 2d5cba7e98
commit 3d7e8edd75
22 changed files with 151 additions and 187 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ impl Emitter {
None => {
let reg = ctx.alloc_reg();
ctx.push_scope_with_kind(ScopeKind::BlockScope);
ctx.declare(name, reg, VariableDeclarationKind::Const, true)?;
ctx.declare(name, reg, VariableDeclarationKind::Const)?;
pushed_scope = true;
reg
}