Skip to content

[5.5] [Refactoring] Support async for function extraction #37670

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 4 commits into from
May 27, 2021

Conversation

hamishknight
Copy link
Contributor

5.5 cherry-pick of #37651


Adapt the ThrowingEntityAnalyzer to pick up any await keywords and add an async to the extracted function if necessary along with an await for its call.

rdar://72199949

If we're extracting a function that throws, add
a `try` to the call.
We don't want to consider any `try` exprs here.
Adapt the `ThrowingEntityAnalyzer` to pick up any
`await` keywords and add an `async` to the extracted
function if necessary along with an `await` for its
call.

rdar://72199949
@hamishknight hamishknight requested a review from a team as a code owner May 27, 2021 12:31
@hamishknight hamishknight requested a review from akyrtzi May 27, 2021 12:31
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@akyrtzi akyrtzi merged commit 703a122 into swiftlang:release/5.5 May 27, 2021
@hamishknight hamishknight deleted the let-that-async-in-5.5 branch May 27, 2021 20:22
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants