Skip to content

[CSFix] Delay missing unwrap locator simplification until diagnostic #26376

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
Jul 29, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 26, 2019

Instead of keeping two locators in the fix let's store only the
original locator and simplify it later in process of emitting
a diagnostic. That helps to avoid some duplicate work as well
as makes sure that locators supplied to the diagnostic always
have an anchor.

Resolves: rdar://problem/53344815
Resolves: rdar://problem/53238058

@xedin xedin requested a review from sl July 26, 2019 22:58
@xedin
Copy link
Contributor Author

xedin commented Jul 26, 2019

@swift-ci please smoke test

Copy link
Contributor

@sl sl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Really nice change. If you could add a note stating the issue fixing the radar resolves in the tests though, that would be great.

Instead of keeping two locators in the fix let's store only the
original locator and simplify it later in process of emitting
a diagnostic. That helps to avoid some duplicate work as well
as makes sure that locators supplied to the diagnostic always
have an anchor.

Resolves: rdar://problem/53344815
@xedin
Copy link
Contributor Author

xedin commented Jul 29, 2019

@swift-ci please smoke test

@xedin xedin merged commit 68d25a2 into swiftlang:master Jul 29, 2019
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

3 participants