Skip to content

Sema: missing switch case fixits should print payload names explicitly instead of printing underscores. rdar://32121806 #10409

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 7 commits into from
Jun 20, 2017

Conversation

nkcsgexi
Copy link
Contributor

No description provided.

nkcsgexi added 6 commits June 19, 2017 12:53
…sion, if the location cannot be further refined to other kind, e.g. a reference. rdar://32749670
…n expression, if the location cannot be further refined to other kind, e.g. a reference. rdar://32749670"

This reverts commit d6091d5.
…y instead of printing underscores. rdar://32121806
@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test


// This is for type space only to help us print meaningful name, e.g.,
// tuple element name in fixits.
Identifier NameForPrinting;
Copy link
Contributor

@CodaFi CodaFi Jun 20, 2017

Choose a reason for hiding this comment

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

You probably could reuse the Head for this and write a getName() accessor that does a type check like the others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So Head is not used at all for type space?

Copy link
Contributor

@CodaFi CodaFi Jun 20, 2017

Choose a reason for hiding this comment

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

Nope. I assumed nobody would need it - 's why it prints as an underscore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, will change.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit bc73e43 into swiftlang:master Jun 20, 2017
@nkcsgexi nkcsgexi deleted the switch-print-type branch June 20, 2017 21:13
nkcsgexi added a commit that referenced this pull request Jun 20, 2017
…y instead of printing underscores. rdar://32121806 (#10409) (#10417)
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