mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Make `ScopeId` a type with a niche, like `SymbolId` and `ReferenceId`. This makes `Option<ScopeId>` 4 bytes instead of 8, and shrinks various AST types e.g. `ArrowFunctionExpression` by 8 bytes, and halves the size of the `Vec` in `ScopeTree::parent_ids`.
The snapshot change on `prefer-hooks-in-order` lint rule appears incidental - it doesn't alter what errors are reported, only the order they're reported in. This appears to be because it changes the order of keys in a hashmap keyed by `ScopeId` that [the rule uses](
|
||
|---|---|---|
| .. | ||
| .cargo | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||