-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing async keywords in void methods (#290)
## Overview Methods returning `Void` implicitly aren’t parsed correctly for declaration keywords like `throws` and `async` which can lead to malformed code if the method body contains “async.” ```swift func notAsync() { DispatchQueue.main.async {} } ``` ## Test Plan Added an additional test case to check for async false positives.
- Loading branch information
1 parent
81067ca
commit 6e0d473
Showing
2 changed files
with
28 additions
and
0 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