-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sema] Allow implicit nodes to wrap if/switch expressions
Previously we would only look through a handful of AST node types when determining if an if/switch expression is in a valid position. However this doesn't handle cases where we synthesize code around an if/switch expression, such as `init(erasing:)` calls. As such, relax the logic such that it can look through any implicit expression. rdar://113435870
- Loading branch information
1 parent
abe28dc
commit 157e488
Showing
3 changed files
with
63 additions
and
20 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