mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
## Why
Due to the usage of `&'alloc mut T` in `oxc_allocator::Box`, and
`bumpalo::collections::Vec` in `oxc_allocator::Vec`, ast types are
currently invariant over their allocator lifetime `'a`. This prevents
`ouroboros` from generating `borrow_*` on ast type fields, leading to
the unfriendly `with_*` api:
|
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
Getting started
Create a test.js and run the example just example prettier from crates/oxc_prettier/examples/prettier.rs, follow the code structure and read the references documented at the top of the files.
Tasks
- Have the basic infrastructure ready for contribution
- Implement a test runner in Rust which extracts the snapshots and do a comparison over it
- Establish a way to pass all the tests by manually porting code
- Pass as many tests as possible in https://github.com/prettier/prettier/tree/main/tests/format/js