-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Conversation
…sion, if the location cannot be further refined to other kind, e.g. a reference. rdar://32749670
This reverts commit 0e715ee.
…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
@swift-ci please smoke test |
lib/Sema/TypeCheckSwitchStmt.cpp
Outdated
|
||
// This is for type space only to help us print meaningful name, e.g., | ||
// tuple element name in fixits. | ||
Identifier NameForPrinting; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, will change.
@swift-ci please smoke test |
No description provided.