Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for attr_* method references #2848

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tommycrumrine
Copy link

@tommycrumrine tommycrumrine commented Nov 14, 2024

Motivation

Shows references for methods defined with attr_reader, attr_writer, attr_accessor
Closes #2668

Implementation

attr_reader, attr_writer, attr_accessor are just methods, so on call node if we detect one of these methods, and one of the arguments match the target method name, add the reference.

Automated Tests

ya

Manual Tests

Screenshot 2024-11-15 at 1 43 07 PM

@tommycrumrine
Copy link
Author

I have signed the CLA!

@tommycrumrine tommycrumrine marked this pull request as ready for review November 15, 2024 19:43
@tommycrumrine tommycrumrine requested a review from a team as a code owner November 15, 2024 19:43
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.

Support attr_* for References
1 participant