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

Make ASTHelpers.getSymbol(Tree) delegate to the MemberReferenceTree overload. #4504

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

Make ASTHelpers.getSymbol(Tree) delegate to the MemberReferenceTree overload.

This may or may not actually change behavior: The handling that I added in e5a6d0d was definitely important for MethodInvocationTree, since it affects behavior when code uses static imports. However, static imports can't be used with a MemberReferenceTree, so the change might not be important there. Still, as I noted in that previous CL's description, I get the impression that this might also help with cases like someSerializable.equals—and presumably someSerializable::equals, too.

Anyway, this change seems clearly like either an improvement in behavior or a no-op that makes the implementation more consistent, so either way feels like a win.

…e` overload.

This may or may not actually change behavior: The handling that I added in e5a6d0d was definitely important for `MethodInvocationTree`, since it affects behavior when code uses static imports. However, static imports can't be used with a `MemberReferenceTree`, so the change might not be important there. Still, as I noted in that previous CL's description, I get the impression that this might also help with cases like `someSerializable.equals`—and presumably `someSerializable::equals`, too.

Anyway, this change seems clearly like either an improvement in behavior or a no-op that makes the implementation more consistent, so either way feels like a win.

PiperOrigin-RevId: 656731744
@copybara-service copybara-service bot merged commit 9884911 into master Jul 27, 2024
@copybara-service copybara-service bot deleted the test_654722028 branch July 27, 2024 14:08
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.

1 participant