Skip to content

Commit

Permalink
wip: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 24, 2024
1 parent 7767f36 commit ab6aec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_codegen/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fn print_if(if_stmt: &IfStatement<'_>, p: &mut Codegen, ctx: Context) {
}
stmt if wrap_to_avoid_ambiguous_else(stmt) => {
p.print_soft_space();
p.print_block_start(stmt.span(), stmt.span().start);
p.print_block_start(stmt.span());
stmt.print(p, ctx);
p.needs_semicolon = false;
p.print_block_end(stmt.span());
Expand Down Expand Up @@ -822,7 +822,7 @@ impl<'a> Gen for WithClause<'a> {
p.add_source_mapping(self.span);
self.attributes_keyword.print(p, ctx);
p.print_soft_space();
p.print_block_start(self.span, self.span.start);
p.print_block_start(self.span);
p.print_sequence(&self.with_entries, ctx);
p.print_block_end(self.span);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl<'a> Codegen<'a> {
self.print_ascii_byte(b'}');
}

fn print_block_start(&mut self, span: Span, position: u32) {
fn print_block_start(&mut self, span: Span) {
self.add_source_mapping(span);
self.print_ascii_byte(b'{');
self.print_soft_newline();
Expand Down

0 comments on commit ab6aec2

Please sign in to comment.