Skip to content

Rework sends indexing#136

Merged
Morriar merged 1 commit intomainfrom
at-fix-attrs
Aug 27, 2025
Merged

Rework sends indexing#136
Morriar merged 1 commit intomainfrom
at-fix-attrs

Conversation

@Morriar
Copy link
Contributor

@Morriar Morriar commented Aug 26, 2025

Adresses #124 (comment)

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar self-assigned this Aug 26, 2025
@Morriar Morriar requested a review from a team as a code owner August 26, 2025 20:18
Comment on lines +423 to +429
if let Some(receiver) = node.receiver() {
self.visit(&receiver);
}

if let Some(arguments) = node.arguments() {
self.visit(&arguments.as_node());
}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to visit the receiver and argument? Is there a case where we'd discover something in those? Maybe we can get away not visiting them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Class.new(Bar) do
  def foo
    puts FOO
  end
end.new

Even if we don't know how to handle the Class.new yet, the constant references to Bar and FOO require going through the receiver and args.

We can disable it but we'll need to put it back once we collect the references.

@Morriar Morriar merged commit e9538c6 into main Aug 27, 2025
12 checks passed
@Morriar Morriar deleted the at-fix-attrs branch August 27, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants