feat(ast)!: Re-introduce TSEnumBody AST node#10284
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
CodSpeed Instrumentation Performance ReportMerging #10284 will not alter performanceComparing Summary
|
🙆🏻 Thanks as always for your thoughtful review~! |
2c8a55c to
d9444f1
Compare
d9444f1 to
135297b
Compare
|
Boshen says no need for Have rebased on latest main and fixed conflicts. Will merge once CI passes. |
Move `scope_id: Cell<Option<ScopeId>>` from `TSEnumDeclaration` to `TSEnumBody` for better semantic alignment. Since `TSEnumBody` was introduced as a dedicated type in PR #10284, the scope logically belongs on the body rather than on the parent declaration node. Closes #10331 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
## Summary - Move `scope_id: Cell<Option<ScopeId>>` from `TSEnumDeclaration` to `TSEnumBody` - Since `TSEnumBody` was introduced as a dedicated type in PR #10284, the scope logically belongs on the body rather than on the parent declaration node Closes #10331 ## Test plan - [x] Unit tests pass (`just test`) - [x] Conformance tests pass (`just conformance`) - [x] Updated semantic test snapshots reflect scope now on `TSEnumBody` 🤖 Generated with [Claude Code](https://claude.ai/code)
Fixes #10087
Follow up for #10017 .
This PR eliminates the part where nodes were manually generated for JS-land AST.
NOTE: This node was originally present, but was removed at #2509 and is now being reintroduced to get the correct
Spanposition for #9705 .