Skip to content

Commit

Permalink
feat(prettier): wrap BindingIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 29, 2023
1 parent f87715b commit 4745777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_prettier/src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ impl<'a> Format<'a> for IdentifierName {

impl<'a> Format<'a> for BindingIdentifier {
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
p.str(self.name.as_str())
wrap!(p, self, BindingIdentifier, { p.str(self.name.as_str()) })
}
}

Expand Down
3 changes: 1 addition & 2 deletions tasks/prettier_conformance/prettier.snap.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Compatibility: 198/578 (34.26%)
Compatibility: 199/578 (34.43%)

# Failed

Expand Down Expand Up @@ -307,7 +307,6 @@ Compatibility: 198/578 (34.26%)

### import
* import/comments.js
* import/same-local-and-imported.js

### label
* label/comment.js
Expand Down

0 comments on commit 4745777

Please sign in to comment.