mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use dictionary type sugar in the standard library.
Swift SVN r19264
This commit is contained in:
@@ -207,7 +207,7 @@ func _getSummary<T>(out: UnsafePointer<String>,
|
||||
inout targetStream: TargetStream
|
||||
) -> T {
|
||||
var maxItemCounter = maxItems
|
||||
var visitedItems = Dictionary<ObjectIdentifier, Int>()
|
||||
var visitedItems = [ObjectIdentifier : Int]()
|
||||
_dumpWithMirror(reflect(x), name, indent, maxDepth,
|
||||
&maxItemCounter, &visitedItems, &targetStream)
|
||||
return x
|
||||
@@ -225,7 +225,7 @@ func _getSummary<T>(out: UnsafePointer<String>,
|
||||
func _dumpWithMirror<TargetStream : OutputStream>(
|
||||
mirror: Mirror, name: String?, indent: Int, maxDepth: Int,
|
||||
inout maxItemCounter: Int,
|
||||
inout visitedItems: Dictionary<ObjectIdentifier, Int>,
|
||||
inout visitedItems: [ObjectIdentifier : Int],
|
||||
inout targetStream: TargetStream
|
||||
) {
|
||||
if maxItemCounter <= 0 { return }
|
||||
|
||||
Reference in New Issue
Block a user