Skip to content

[5.9] Fix missing diagnostics for multiple expressions on the same line in closures, switches, and getters #1458

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

Merged
merged 3 commits into from
Mar 29, 2023

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Mar 28, 2023

5.9 cherry-pick of #1453 + #1438

Low risk bug fix for a missing diagnostic.


Switch loops that used parseCodeBlockItem without semicolon checking over to using parseCodeBlockItemList.

Resolves #1452
rdar://107265306

@hamishknight hamishknight requested a review from ahoppen as a code owner March 28, 2023 18:10
ahoppen and others added 3 commits March 28, 2023 20:57
I think they were uppercase because they used to be called `XCTAssert*` but really it’s against all naming guidelines to start a Swift function with an uppercase letter.
…closures, switches, and getters

Switch loops that used `parseCodeBlockItem` without
semicolon checking over to using `parseCodeBlockItemList`.
Pass through `isAtTopLevel` and `allowInitDecl`
parameters, which allow for better diagnostics.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit c52427a into swiftlang:release/5.9 Mar 29, 2023
@hamishknight hamishknight deleted the outliner-5.9 branch March 29, 2023 13:17
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