oxc/.github
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
..
actions chore(coverage): bump test262, babel and TypeScript (#6702) 2024-10-20 15:02:26 +00:00
ISSUE_TEMPLATE chore: remove assignee from linter bug report 2024-10-30 09:39:53 +08:00
workflows ci(clippy): install ast-grep via npm (#7119) 2024-11-04 23:34:06 +08:00
.generated_ast_watch_list.yml feat(ast): methods on AST nodes to get scope_id etc (#7127) 2024-11-05 02:25:27 +00:00
CODE_OF_CONDUCT.md chore: use dprint to format js, json and markdown 2024-09-08 13:24:58 +08:00
codecov.yml
FUNDING.yml chore(FUNDING.yml): add Dunqing, DonIsaac, camc314 and leaysgur 2024-10-27 15:25:12 +08:00
labeler.yml ci: auto-label editor-related PRs (#6532) 2024-10-14 08:57:42 +08:00
renovate.json chore(renovate): let renovate bump all npm versions because this is a pnpmm onorepo now 2024-10-28 09:10:54 +08:00
SECURITY.md chore: use dprint to format js, json and markdown 2024-09-08 13:24:58 +08:00