mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
d82dff91c8
Part of #5068, suggested by @ematipico and @MichaReiser, where @leaysgur and I explored using biome formatter as the base and made a success. All credits to the old Rome and the new Biome team. This PR is in a boilerplate state where some of the functions are marked as `todo!()`. I also made the following changes: * changed the base to be less generic, removed the `Language` and `Context` generics * expanded the formatter lifetime to include an `'ast` lifetime * added access to the source text and comments * added a mechanism for tracking and accessing parent ast nodes (done by our codegen) * removed most of the unit tests because they no longer compile * removed the `oxc_prettier` crate
110 B
110 B
Oxc Formatter
Based on Biome formatter. All credits to the Biome team.