Skip to content

Fix invalid location references in some diagnostics. #220

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

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

dylansturg
Copy link
Contributor

These diagnostics were using a nil node to for the diagnostic's location, which results in a bogus location (e.g. :0:0). Now the diagnostics reference a relevant node, and the tests are updated to verify the diagnostics have reasonable locations.

These diagnostics were using a nil node to for the diagnostic's location, which results in a bogus location (e.g. <unknown>:0:0). Now the diagnostics reference a relevant node, and the tests are updated to verify the diagnostics have reasonable locations.
@allevato allevato merged commit b118f62 into swiftlang:master Aug 14, 2020
allevato added a commit to allevato/swift-format that referenced this pull request Sep 17, 2020
Fix invalid location references in some diagnostics.
allevato added a commit that referenced this pull request Sep 17, 2020
Fix invalid location references in some diagnostics.
@dylansturg dylansturg deleted the better_diagnostic_locs branch May 4, 2022 23:16
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