mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Add `TraverseCtx::generate_uid` method. This is modelled on Babel's `scope.generateUid()` method. As discussed in https://github.com/oxc-project/oxc/discussions/3251#discussioncomment-9416826, this is required to fix most of the remaining failing tests in transformer Milestone 1. I have implemented this to work as closely as possible to Babel, so that it will generate same output as Babel for our tests. However, as mentioned in the code comments, this means it's a pretty expensive function to call. Those code comments suggest 2 ways in which we could make it much more efficient, but we'd need to decide how we're going to handle divergence from Babel before we can decide which route to go. I've left it as a `TODO(improve-on-babel)` for now. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| CHANGELOG.md | ||