lukeed/tidyPublic

fix: comments by JSX generics

The <T> of a JSX element is in its opening tag, where the span lookup
didn't look, so a comment after it climbed to the type inside. And a
comment before global in declare global now leads the name, which
oxc has no node for.
LELuke Edwards authored
abb183aPatch
Parentf36fdc8
2 files changed+30-6
StackedSplit
crates/tidy/src/js/ast_nodes.rs+6 −4
crates/tidy/src/js/attach/surrounding_nodes.rs+24 −2