lukeed/tidyPublic

fix: comments before left sides

A comment inside the parentheses before the left side of an expression
is printed before the expression, so the next formatting attaches it to
the expression and its groups no longer break. A member chain prints it
after the left side of its link instead. tidy places such a comment where
the next formatting finds it, so its output is stable.
LELuke Edwards authored
f969026Patch
Parentbffad9b
6 files changed+149-55
StackedSplit
crates/tidy/src/js/ast/comments.rs+76 −3
crates/tidy/src/js/ast/expr.rs+47 −0
crates/tidy/src/js/print/return_or_throw_statement.rs+4 −51
crates/tidy/src/js/trivia.rs+4 −0
crates/tidy/tests/js.rs+17 −0
deviations.md+1 −1