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 @@ -350,7 +350,7 @@ extension RawSyntax {
350
350
case . node( _, let layout) :
351
351
for child in layout {
352
352
guard let child = child else { continue }
353
- guard let result = child. leadingTrivia else { continue }
353
+ guard let result = child. leadingTrivia else { break }
354
354
return result
355
355
}
356
356
return nil
@@ -364,7 +364,7 @@ extension RawSyntax {
364
364
case . node( _, let layout) :
365
365
for child in layout. reversed ( ) {
366
366
guard let child = child else { continue }
367
- guard let result = child. trailingTrivia else { continue }
367
+ guard let result = child. trailingTrivia else { break }
368
368
return result
369
369
}
370
370
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