Skip to content

Conversation

@nkcsgexi
Copy link
Contributor

This doesn't work on entirely empty switch block because we reject such statement during parsing.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

static void diagnoseMissingCases(ASTContext &Context,
const SwitchStmt *SwitchS) {
SourceLoc EndLoc = SwitchS->getEndLoc();
StringRef PlaceHolder = "<#Code#>";
Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nitpick: "placeholder" is one word.

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit d12d3c1 into swiftlang:master Feb 25, 2017
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