oxc/tasks/ast_tools
overlookmotel cc8a1917e5 feat(ast): methods on AST nodes to get scope_id etc (#7127)
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`).
2024-11-05 02:25:27 +00:00
..
src feat(ast): methods on AST nodes to get scope_id etc (#7127) 2024-11-05 02:25:27 +00:00
Cargo.toml refactor(ast_tools): replace str::replace with CowUtils::cow_replace (#6954) 2024-10-28 00:23:34 +00:00