File tree 2 files changed +3
-3
lines changed
Tests/SwiftSyntaxTest/Inputs
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ extension RawSyntax {
338
338
case . node( _, let layout) :
339
339
for child in layout {
340
340
guard let child = child else { continue }
341
- guard let result = child. leadingTrivia else { continue }
341
+ guard let result = child. leadingTrivia else { break }
342
342
return result
343
343
}
344
344
return nil
@@ -352,7 +352,7 @@ extension RawSyntax {
352
352
case . node( _, let layout) :
353
353
for child in layout. reversed ( ) {
354
354
guard let child = child else { continue }
355
- guard let result = child. trailingTrivia else { continue }
355
+ guard let result = child. trailingTrivia else { break }
356
356
return result
357
357
}
358
358
return nil
Original file line number Diff line number Diff line change 1
1
func foo( ) {
2
- func foo( ) {
2
+ public func foo( ) {
3
3
func foo( ) {
4
4
/*Unknown token */0 xG
5
5
}
You can’t perform that action at this time.
0 commit comments