lukeed/tidyPublic

fix: comments by types, require

A comment next to a return type or an annotation took oxc's
TSTypeAnnotation for a name, so the climb to bun's owner never
started; it now starts at the type. The string of require("a") in
import a = require("a") is a name, as in bun's tree, so its comments
print with it.
LELuke Edwards authored
f0c0152Patch
Parent7a076df
2 files changed+7-5
StackedSplit
crates/tidy/src/js/ast/comments.rs+5 −4
crates/tidy/src/js/ast/node.rs+2 −1