lukeed/tidyPublic

fix: comments by catch, as const

bun's tree has no node for a catch clause or for the const of
as const; oxc has both. A comment before catch now climbs from the
catch body to the clause, which moves it into the body as Prettier
does, and one before const trails the expression.
LELuke Edwards authored
8c376d1Patch
Parentc8968ac
2 files changed+17-5
StackedSplit
crates/tidy/src/js/ast/comments.rs+16 −4
crates/tidy/src/js/ast/expr.rs+1 −1