lukeed/tidyPublic

fix: JS comment owners

Comments in literal computed keys, on object rest patterns, before a
mapped type's bracket, after a signature's last parameter and inside
a decorator of an exported class went to nodes the printer never
asks, so they moved or dropped. Restore bun's expression-root rule,
which keeps Vue expressions free of extra parentheses.
LELuke Edwards authored
aac7046Patch
Parent0bda9f3
6 files changed+83-8
StackedSplit
crates/tidy/src/js/ast/comments.rs+36 −2
crates/tidy/src/js/ast/decl.rs+5 −0
crates/tidy/src/js/ast/key.rs+14 −0
crates/tidy/src/js/ast/node.rs+11 −3
crates/tidy/src/js/ast_nodes.rs+12 −0
crates/tidy/src/js/attach/rules.rs+5 −3