lukeed/tidyPublic

feat: JS AstNodes over oxc's tree

ast_nodes.rs gives the printer oxc's view of a node's surroundings,
from the node tables rather than from bun's tree: a variant is an oxc
kind with the handle that the printer formats it from. The
ChainExpression of an optional chain, and the FunctionBody and
ExpressionStatement of an arrow with an expression body, which oxc's
parser doesn't have, are made up as oxc's formatter has them. Node gets
bun's helpers: as_expr, span, owner_or_self and the like.
LELuke Edwards authored
c21d7fePatch
Parenta5fb04c
3 files changed+797-1283
StackedSplit
crates/tidy/src/js/ast/node.rs+64 โˆ’0
crates/tidy/src/js/ast_nodes.rs+732 โˆ’1283
crates/tidy/src/js/mod.rs+1 โˆ’0