Commit 8569c8a
committed
[Refactoring] Avoid redeclarations or shadowing in async refactored code
When converting a call or function, rename declarations such that
redeclaration errors and shadowing are avoided. In some cases this will
be overly conservative, but since any renamed variable can be fixed with
edit all in scope, this is preferred over causing redeclaration errors
or possible shadowing.
Resolves rdar://739735171 parent d9e5895 commit 8569c8a
File tree
7 files changed
+1234
-151
lines changed- include/swift/AST
- lib/IDE
- test/refactoring/ConvertAsync
7 files changed
+1234
-151
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| |||
0 commit comments