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

[DiagnosticsQoI] Refactor ArrayExpr visitor for better QoI #13471

Merged
merged 1 commit into from Dec 16, 2017

Conversation

CodaFi
Copy link
Member

@CodaFi CodaFi commented Dec 15, 2017

SR-6623 inspired me to take look around here and clean it up. The diff is a mess, but the changes in diagnostics in the existing tests are indicative of the improvements the patch provides.

Also remove mention of the word “contextual” type from the diagnostic
that rewrites array literals into dictionary literals and scale back
the scope of the diagnostic.  This method was catching and
mis-diagnosing too many errors that could better be handled by invalid
conversion diagnostics.
@CodaFi CodaFi requested a review from xedin December 15, 2017 23:22
@CodaFi
Copy link
Member Author

CodaFi commented Dec 15, 2017

@swift-ci please smoke test

@NachoSoto
Copy link
Contributor

Better than what we have! 👍

@NachoSoto
Copy link
Contributor

None of the test cases are exactly what's in the Jira though, or did I miss one?

@CodaFi
Copy link
Member Author

CodaFi commented Dec 15, 2017

I didn't solve your particular issue with this patch, so I'm going to save it for later.

@NachoSoto
Copy link
Contributor

@CodaFi gotcha, thanks for improving this though 👍

Copy link
Member

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks, @CodaFi !

@xedin xedin merged commit b6dbafb into apple:master Dec 16, 2017
@CodaFi CodaFi deleted the array-of-sunshine branch December 16, 2017 00:20
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.

None yet

3 participants