Skip to content

Commit

Permalink
refactor(codegen)!: rename print_char method to print_ascii_byte
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 13, 2024
1 parent 3345fd7 commit 17ea74b
Show file tree
Hide file tree
Showing 12 changed files with 167 additions and 164 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_codegen/src/binary_expr_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl<'a> BinaryExpressionVisitor<'a> {
&& self.ctx.intersects(Context::FORBID_IN));

if self.wrap {
p.print_char(b'(');
p.print_ascii_byte(b'(');
self.ctx &= Context::FORBID_IN.not();
}

Expand Down Expand Up @@ -200,7 +200,7 @@ impl<'a> BinaryExpressionVisitor<'a> {
p.print_soft_space();
self.e.right().gen_expr(p, self.right_precedence, self.ctx & Context::FORBID_IN);
if self.wrap {
p.print_char(b')');
p.print_ascii_byte(b')');
}
}
}
Loading

0 comments on commit 17ea74b

Please sign in to comment.