lukeed/tidyPublic

feat: index oxc's tree for JS

js::ast::File walks oxc's tree once and keeps, by node id, each node,
its parent and its children, without the parentheses and chains that
bun's tree doesn't have. The handles of the JS printer build on these
tables. On 35,895 files of the bench corpus, children are in source
order but in templates and before a this parameter.
LELuke Edwards authored
6167a15Patch
Parent442e23c
5 files changed+239-1
StackedSplit
crates/tidy/src/js/ast/mod.rs+123 −0
crates/tidy/src/js/ast/span.rs+110 −0
crates/tidy/src/js/mod.rs+3 −0
crates/tidy/src/js/readme.md+1 −1
crates/tidy/src/lib.rs+2 −0