mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 13:48:55 +00:00
Add getter and setter methods to all AST types which have a `ScopeId`, `SymbolId` or `ReferenceId` field to get the contents of that field. Before: ```rs let symbol_id = ident.symbol_id.get().unwrap(); ``` After: ```rs let symbol_id = ident.symbol_id(); ``` This allows removing boilerplate code from the transformer, and discouraging the anti-pattern of treating these fields as if they may contain either `Some` or `None` (after semantic, they will always be `Some`). |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||