Commit 8cb319b
committed
[Refactoring] Preserve comments in async transform
Previously we would drop comments between nodes in
a BraceStmt, as we printed each node out individually.
To remedy this, always make sure we scan backwards
to find any preceding comments attached to a node,
and also keep track of any SourceLocs which we
don't print, but may have comments attached which
we want to preserve.
rdar://774018101 parent 3a7a880 commit 8cb319b
File tree
5 files changed
+518
-45
lines changed- lib/IDE
- test/refactoring/ConvertAsync
5 files changed
+518
-45
lines changed
0 commit comments