Skip to content

Commit

Permalink
perf(codegen): inline Codegen::print_list
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 26, 2024
1 parent 8109ed0 commit b213b34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ impl<'a> Codegen<'a> {
self.needs_semicolon = false;
}

#[inline]
fn print_list<T: Gen>(&mut self, items: &[T], ctx: Context) {
let mut iter = items.iter();
let Some(item) = iter.next() else { return };
Expand Down

0 comments on commit b213b34

Please sign in to comment.