refactor(linter/jsx-key): use IdentifierReference::reference_id over cell access#19494
Conversation
IdentifierReference::reference_id over cell acessIdentifierReference::reference_id over cell access
There was a problem hiding this comment.
Pull request overview
Refactors the React jsx-key linter rule helper to use the post-semantic IdentifierReference::reference_id() accessor instead of directly reading the underlying Cell<Option<ReferenceId>>, aligning with the “post-semantic AST” assumption used throughout the linter.
Changes:
- Replaced manual
ident.reference_id.get()option handling withident.reference_id()accessor. - Simplified the reference lookup flow by removing an outer
Optionguard.
Merge activity
|
Merging this PR will not alter performance
Comparing Footnotes
|
01ed3da to
33e1db7
Compare
d037ad4 to
784509b
Compare
33e1db7 to
71067ff
Compare
7bad5a4 to
9bc4658
Compare
784509b to
2e7fa91
Compare
9bc4658 to
36bf284
Compare
2e7fa91 to
40f047f
Compare

No description provided.