style: 自动格式化

This commit is contained in:
爱特每羊队
2026-06-06 19:05:36 +08:00
parent a96b651feb
commit 33314265eb
6 changed files with 26 additions and 30 deletions
+4 -4
View File
@@ -121,10 +121,10 @@ impl Compiler {
ctx.projected_pc += 1; // STORE_VAR (value from FOR_IN_NEXT)
}
}
oxide_parser::ForStatementLeft::AssignmentTargetIdentifier(_) => {
ctx.alloc_reg(); // key register
ctx.projected_pc += 1; // STORE_VAR
}
oxide_parser::ForStatementLeft::AssignmentTargetIdentifier(_) => {
ctx.alloc_reg(); // key register
ctx.projected_pc += 1; // STORE_VAR
}
_ => {}
}
+3 -1
View File
@@ -306,7 +306,9 @@ impl Compiler {
let break_label = if let Some(sw_label) = ctx.current_switch() {
*sw_label
} else {
let (bl, _) = ctx.current_loop().ok_or("break outside switch or loop".to_string())?;
let (bl, _) = ctx
.current_loop()
.ok_or("break outside switch or loop".to_string())?;
*bl
};
let break_pos = ctx.resolve_label(break_label)?;