File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -529,10 +529,10 @@ public extension SyntaxProtocol {
529
529
if let token = Syntax ( self ) . as ( TokenSyntax . self) {
530
530
target. write ( String ( describing: token. tokenKind) )
531
531
if includeTrivia {
532
- if let leadingTrivia, !leadingTrivia. isEmpty {
532
+ if let leadingTrivia = leadingTrivia , !leadingTrivia. isEmpty {
533
533
target. write ( " leadingTrivia= \( leadingTrivia. debugDescription) " )
534
534
}
535
- if let trailingTrivia, !trailingTrivia. isEmpty {
535
+ if let trailingTrivia = trailingTrivia , !trailingTrivia. isEmpty {
536
536
target. write ( " trailingTrivia= \( trailingTrivia. debugDescription) " )
537
537
}
538
538
}
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public struct Trivia {
150
150
151
151
extension Trivia : CustomDebugStringConvertible {
152
152
public var debugDescription : String {
153
- if count == 1 , let first {
153
+ if count == 1 , let first = first {
154
154
return first. debugDescription
155
155
}
156
156
return " [ " + map( \. debugDescription) . joined ( separator: " , " ) + " ] "
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ public struct Trivia {
276
276
277
277
extension Trivia : CustomDebugStringConvertible {
278
278
public var debugDescription : String {
279
- if count == 1 , let first {
279
+ if count == 1 , let first = first {
280
280
return first. debugDescription
281
281
}
282
282
return " [ " + map( \. debugDescription) . joined ( separator: " , " ) + " ] "
You can’t perform that action at this time.
0 commit comments