feat(ast): add method to retrieve SymbolIds from BindingPattern#20532
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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR adds a new BindingPattern helper for extracting semantic SymbolIds from all bound identifiers within a binding pattern, intended to simplify downstream consumers that currently walk binding identifiers and read symbol_id.
Changes:
- Import
SymbolIdintocrates/oxc_ast/src/ast_impl/js.rs. - Add recursive traversal (
append_symbol_ids) overBindingPatternvariants to collect symbol IDs. - Expose
BindingPattern::get_symbol_ids()as a public API returning an iterator of collectedSymbolIds.
4781da9 to
494f267
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
494f267 to
76cd0b1
Compare

No description provided.