refactor(compiler): finalize single pass compilation

This commit is contained in:
爱特每羊队
2026-08-05 01:49:21 +08:00
parent 0f78f341fa
commit 8ee6781795
4 changed files with 40 additions and 21 deletions
-2
View File
@@ -66,7 +66,6 @@ impl Compiler {
false,
&self_binding,
FunctionBodyContext::ClassElement,
None::<fn(&Compiler, &mut CompileCtx)>,
Some(|compiler: &Compiler, field_ctx: &mut CompileCtx| -> Result<(), String> {
for field in &instance_fields {
if let PropertyKey::PrivateIdentifier(private) = &field.key {
@@ -98,7 +97,6 @@ impl Compiler {
false,
&self_binding,
FunctionBodyContext::ClassElement,
None::<fn(&Compiler, &mut CompileCtx)>,
Some(|compiler: &Compiler, field_ctx: &mut CompileCtx| -> Result<(), String> {
for field in &instance_fields {
if let PropertyKey::PrivateIdentifier(private) = &field.key {