diff --git a/crates/swc_ecma_codegen/src/text_writer.rs b/crates/swc_ecma_codegen/src/text_writer.rs index bc119963d9e1..16c91ac78bdf 100644 --- a/crates/swc_ecma_codegen/src/text_writer.rs +++ b/crates/swc_ecma_codegen/src/text_writer.rs @@ -33,7 +33,12 @@ pub trait WriteJs { fn write_symbol(&mut self, span: Span, s: &str) -> Result; - fn write_punct(&mut self, span: Option, s: &'static str) -> Result; + fn write_punct( + &mut self, + span: Option, + s: &'static str, + should_commit_semi: bool, + ) -> Result; fn care_about_srcmap(&self) -> bool;