-
Notifications
You must be signed in to change notification settings - Fork 13k
Handle localness in special cases by checking exported variable assignment #43851
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is the only place checker.isDeclarationVisible
is used—seems like it could just be renamed to isDefinitionVisible
and augmented with this code. Though, the distinction between the two is somewhat useful to understanding the code.
|
Just noticed there are some test failures, i will take a look at them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug mentions that file openness affects the behavior, but I don't see anything about that in this PR. Am I missing something?
Depending on which project is open the set of things where it would be found is going to be different so its not relevant to this issue. The main issue is if project set would be opened based on localness (which was set to local before and now we try to make it not local) making it work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation!
Fixes #42976