Hamish Knight
8d92241ca9
[Refactoring] Support async for function extraction
...
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
2021-05-26 12:40:35 +01:00
Hamish Knight
3752965d8b
[IDE] Don't walk into closures in ThrowingEntityAnalyzer
...
We don't want to consider any `try` exprs here.
2021-05-26 12:40:35 +01:00
Hamish Knight
e25c39c5a5
[Refactoring] Add try for extracted function call
...
If we're extracting a function that throws, add
a `try` to the call.
2021-05-26 12:40:34 +01:00
Argyrios Kyrtzidis
60a91bb736
[refactoring] Upstreaming the implementation for Swift local refactoring ( #11568 )
...
[refactoring] Upstreaming the implementation for Swift local refactoring
2017-08-22 16:50:16 -07:00