Skip to content

Ensure we index new call receivers#671

Merged
vinistock merged 1 commit intomainfrom
03-17-ensure_we_index_new_call_receivers
Mar 18, 2026
Merged

Ensure we index new call receivers#671
vinistock merged 1 commit intomainfrom
03-17-ensure_we_index_new_call_receivers

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Mar 17, 2026

Because we process new in a special way, we weren't correctly indexing the singleton receiver or counting them as method references.

This PR fixes those.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Mar 17, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label Mar 17, 2026 — with Graphite App
@vinistock vinistock marked this pull request as ready for review March 17, 2026 21:13
@vinistock vinistock requested a review from a team as a code owner March 17, 2026 21:13
@vinistock vinistock force-pushed the 03-17-ensure_we_index_new_call_receivers branch from 9f34cb5 to 59ead1f Compare March 17, 2026 21:26
if method_receiver.is_none()
&& let Some(receiver) = node.receiver()
{
self.visit(&receiver);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it for indexing foo in foo.bar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, correct. If the method receiver is not a constant, we still want to visit to ensure that any other relevant indexing data is collected.

@vinistock vinistock merged commit 5d766f5 into main Mar 18, 2026
31 checks passed
@vinistock vinistock deleted the 03-17-ensure_we_index_new_call_receivers branch March 18, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants