refactor(linter/prefer-const): use IdentifierReference::reference_id over cell access#19492
Conversation
IdentifierReference::reference_id over cell acessIdentifierReference::reference_id over cell access
There was a problem hiding this comment.
Pull request overview
Refactors the prefer-const ESLint rule implementation to use the generated IdentifierReference::reference_id() accessor (post-semantic API) instead of directly reading the underlying Cell<Option<ReferenceId>>, aligning this rule with the newer AST access patterns used across the linter.
Changes:
- Replace
ident.reference_id.get()access withident.reference_id()in array destructuring assignment-target handling. - Replace
ident.binding.reference_id.get()access withident.binding.reference_id()in object destructuring assignment-target handling.
Merge activity
|
Merging this PR will not alter performance
Comparing Footnotes
|
43b3c40 to
556bdfc
Compare
4be0ba0 to
8f659ba
Compare
8f659ba to
fbb7f21
Compare
556bdfc to
c7e31b2
Compare
fbb7f21 to
296a62c
Compare
…` over cell access (#19492)
296a62c to
fbcbb45
Compare

No description provided.