File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -682,8 +682,7 @@ public struct TokenSequence: Sequence {
682
682
683
683
extension TokenSequence : CustomReflectable {
684
684
public var customMirror : Mirror {
685
- let keyAndValues = enumerated ( ) . map { ( label: String ( $0. 0 ) as String ? , value: $0. 1 as Any ) }
686
- return Mirror ( self , children: keyAndValues)
685
+ return Mirror ( self , unlabeledChildren: self . map { $0 } )
687
686
}
688
687
}
689
688
@@ -731,7 +730,6 @@ public struct ReversedTokenSequence: Sequence {
731
730
732
731
extension ReversedTokenSequence : CustomReflectable {
733
732
public var customMirror : Mirror {
734
- let keyAndValues = enumerated ( ) . map { ( label: String ( $0. 0 ) as String ? , value: $0. 1 as Any ) }
735
- return Mirror ( self , children: keyAndValues)
733
+ return Mirror ( self , unlabeledChildren: self . map { $0 } )
736
734
}
737
735
}
Original file line number Diff line number Diff line change @@ -230,8 +230,7 @@ extension ${node.name}: Sequence {
230
230
% if node. is_syntax_collection ( ) :
231
231
extension ${ node. name} : CustomReflectable {
232
232
public var customMirror: Mirror {
233
- let keyAndValues = enumerated ( ) . map { ( label: String ( $0. 0 ) as String ? , value: $0. 1 as Any ) }
234
- return Mirror( self , children: keyAndValues)
233
+ return Mirror ( self , unlabeledChildren: self . map { $0 } )
235
234
}
236
235
}
237
236
% end
You can’t perform that action at this time.
0 commit comments