Skip to content

Commit

Permalink
don"t alter properties
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 26, 2023
1 parent aa20f14 commit 9db14c1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,7 @@ impl<'a> DocPrinter<'a> {
for d in &node.decorators {
writeln!(w, "{}{}", Indent(1), d)?;
}
writeln!(
w,
"{}{}{}",
Indent(1),
colors::italic_gray(if self.private { "private " } else { "" }),
node,
)?;
writeln!(w, "{}{}", Indent(1), node,)?;
self.format_jsdoc(w, &node.js_doc, 2)?;
}
for index_sign_def in &class_def.index_signatures {
Expand All @@ -427,13 +421,7 @@ impl<'a> DocPrinter<'a> {
for d in &node.function_def.decorators {
writeln!(w, "{}{}", Indent(1), d)?;
}
writeln!(
w,
"{}{}{}",
Indent(1),
colors::italic_gray(if self.private { "private " } else { "" }),
node,
)?;
writeln!(w, "{}{}", Indent(1), node,)?;
self.format_jsdoc(w, &node.js_doc, 2)?;
}
}
Expand Down

0 comments on commit 9db14c1

Please sign in to comment.