File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/SwiftSyntaxMacroExpansion Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ private class AttributeRemover: SyntaxRewriter {
434
434
// Ensure that any horizontal whitespace trailing the attributes list is trimmed if the next
435
435
// token starts a new line.
436
436
if let nextToken = node. nextToken ( viewMode: . sourceAccurate) ,
437
- nextToken. leadingTrivia. startsWithNewline ( )
437
+ nextToken. leadingTrivia. startsWithNewline
438
438
{
439
439
if !triviaToAttachToNextToken. isEmpty {
440
440
triviaToAttachToNextToken = triviaToAttachToNextToken. trimmingSuffix ( while: \. isSpaceOrTab)
@@ -490,7 +490,7 @@ private extension Trivia {
490
490
)
491
491
}
492
492
493
- func startsWithNewline( ) -> Bool {
493
+ var startsWithNewline : Bool {
494
494
self . first? . isNewline ?? false
495
495
}
496
496
}
You can’t perform that action at this time.
0 commit comments