mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
feat(printer) Print PrivateIdentifier (#1268)
This commit is contained in:
parent
5c1637b786
commit
1cc003f194
1 changed files with 6 additions and 1 deletions
|
|
@ -967,7 +967,12 @@ impl<'a> Format<'a> for AccessorProperty<'a> {
|
|||
|
||||
impl<'a> Format<'a> for PrivateIdentifier {
|
||||
fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> {
|
||||
Doc::Line
|
||||
let mut parts = p.vec();
|
||||
|
||||
parts.push(p.str("#"));
|
||||
parts.push(p.str(self.name.as_str()));
|
||||
|
||||
Doc::Array(parts)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue