mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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://77401810
41 KiB
41 KiB