mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Aync Refactoring] Better handle comment trailing whitespace
Use `getCommentRange` to trim off the comment's trailing whitespace, avoiding outputting extraneous empty lines. rdar://82072147
This commit is contained in:
@@ -835,7 +835,6 @@ func testPreserveComments2() {
|
||||
// PRESERVE-COMMENTS-ERROR-NEXT: // f
|
||||
// PRESERVE-COMMENTS-ERROR-NEXT: print("fun")
|
||||
// PRESERVE-COMMENTS-ERROR-NEXT: // g
|
||||
// PRESERVE-COMMENTS-ERROR-NEXT: {{ }}
|
||||
// PRESERVE-COMMENTS-ERROR-NEXT: }
|
||||
|
||||
// RUN: %refactor -convert-to-async -dump-text -source-filename %s -pos=%(line+1):1 | %FileCheck -check-prefix=PRESERVE-TRAILING-COMMENT-FN %s
|
||||
|
||||
Reference in New Issue
Block a user