feat(prettier): wrap BindingIdentifier (#1581)

This commit is contained in:
Boshen 2023-11-29 19:08:29 +08:00 committed by GitHub
parent e6f85a9a62
commit 405d1228a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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()) })
}
}

View file

@ -1,4 +1,4 @@
Compatibility: 198/578 (34.26%)
Compatibility: 199/578 (34.43%)
# Failed
@ -307,7 +307,6 @@ Compatibility: 198/578 (34.26%)
### import
* import/comments.js
* import/same-local-and-imported.js
### label
* label/comment.js