-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code review driven iterative clean up of SwitchExpressions support (#…
…3186) * Get rid of `SwitchExpression.resolveAll` and the kludge introduced by https://bugs.eclipse.org/bugs/show_bug.cgi?id=542560 * Withdraw the error `A switch expression should have a non-empty switch block` as it is subsumed by `A switch expression should have at least one result expression` * Delete obsolete diagnostic property strings from messages.properties leaving corresponding IProblem constants deprecated * Remove dead code in the Scanner * Revert earlier ill thought out renaming of `YieldStatement.switchExpression` that actually _reduces_ readability * Remove misplaced attempt to diagnose about expression in place of statement from `SwitchStatement.analyseCode` - this is already diagnosed in `SwitchExpression.resolveType()` * SwitchExpression.java: Eliminate unnecessary null checks; Opt for clearer variable names; Withdraw AST traversal method that is identical to super implementation.
- Loading branch information
1 parent
7514c06
commit 5963384
Showing
9 changed files
with
50 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters