diff --git a/crates/oxc_codegen/src/gen.rs b/crates/oxc_codegen/src/gen.rs index 255a89fb48db7..319384e16eae5 100644 --- a/crates/oxc_codegen/src/gen.rs +++ b/crates/oxc_codegen/src/gen.rs @@ -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()); @@ -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); } diff --git a/crates/oxc_codegen/src/lib.rs b/crates/oxc_codegen/src/lib.rs index 5344db18f0b03..8c9324e193e3d 100644 --- a/crates/oxc_codegen/src/lib.rs +++ b/crates/oxc_codegen/src/lib.rs @@ -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();