mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +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`). |
||
|---|---|---|
| .. | ||
| actions | ||
| ISSUE_TEMPLATE | ||
| workflows | ||
| .generated_ast_watch_list.yml | ||
| CODE_OF_CONDUCT.md | ||
| codecov.yml | ||
| FUNDING.yml | ||
| labeler.yml | ||
| renovate.json | ||
| SECURITY.md | ||