Commit b0dc998
committed
[Refactoring] Use known alternative in async refactoring if one exists
Update the async refactorings to use the name from the async alternative
if one is known, rather than always assuming the name matches the
synchronous function.
Note that this could also be used to determine whether results remain
optional or not, but that has been left for a future patch.
Resolves rdar://806125211 parent 982a2cb commit b0dc998
File tree
7 files changed
+546
-158
lines changed- include/swift/AST
- lib
- AST
- IDE
- test/refactoring/ConvertAsync
7 files changed
+546
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6182 | 6182 | | |
6183 | 6183 | | |
6184 | 6184 | | |
6185 | | - | |
| 6185 | + | |
6186 | 6186 | | |
6187 | 6187 | | |
6188 | 6188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7038 | 7038 | | |
7039 | 7039 | | |
7040 | 7040 | | |
7041 | | - | |
| 7041 | + | |
7042 | 7042 | | |
7043 | 7043 | | |
7044 | 7044 | | |
| |||
7121 | 7121 | | |
7122 | 7122 | | |
7123 | 7123 | | |
7124 | | - | |
| 7124 | + | |
7125 | 7125 | | |
7126 | 7126 | | |
7127 | 7127 | | |
| |||
0 commit comments