-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
fix(semantic): remove check_unresolved_references
#5301
fix(semantic): remove check_unresolved_references
#5301
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
check_unresolved_references
CodSpeed Performance ReportMerging #5301 will not alter performanceComparing Summary
|
I'm afraid I disagree with you on this one. First off, the test failure discussed in #5298 (review) is correct, as far as I can see. We have failed to delete an unresolved reference when we should have, and the checker flags that. Secondly, In the case of #5298 (review), the problem is that we've deleted the |
Yes, I know we should remove them. but since Semantic doesn't provide |
Sorry I was rushing out of the house yesterday, so just whacked out #5305, but didn't have time to reply here.
It does now! #5305
That is true. I left that out of the transform checker for now as currently we have no way to flag scopes, symbols and references as deleted (#5097). Adding that'll be a bit of work, so I thought best just punt the problem for now - and it only matters if you iterate over Whereas, for unresolved references, even though we didn't have an API for deleting them, I knew it wouldn't be hard to add one. So, in summary... in my view we should delete unresolved references, #5305 gives us an API to do that, and the transformer checker should check it's done correctly. So I think we should close this PR. |
I agree |
As I said in #5298 (comment). The
unresolved_references
check is incorrect. In the meantime, I found thatcheck_reference
contained theunresolved_references
check, so I removed it