@@ -40,25 +40,26 @@ public enum _PrintForDebugger {
40
40
}
41
41
42
42
internal static func asObjectIdentifier( value: Any ) -> ObjectIdentifier ? {
43
- if let ao = value as? AnyObject {
44
- return ObjectIdentifier ( ao)
45
- } else {
46
- return nil
47
- }
43
+ if let ao = value as? AnyObject {
44
+ return ObjectIdentifier ( ao)
45
+ } else {
46
+ return nil
47
+ }
48
48
}
49
49
50
50
internal static func asNumericValue( value: Any ) -> Int {
51
- if let ao = value as? AnyObject {
52
- return unsafeBitCast ( ao, to: Int . self)
53
- } else {
54
- return 0
55
- }
51
+ if let ao = value as? AnyObject {
52
+ return unsafeBitCast ( ao, to: Int . self)
53
+ } else {
54
+ return 0
55
+ }
56
56
}
57
57
58
58
internal static func asStringRepresentation(
59
59
value: Any ? ,
60
60
mirror: Mirror ,
61
- count: Int ) -> String ? {
61
+ count: Int
62
+ ) -> String ? {
62
63
let ds = mirror. displayStyle ?? . `struct`
63
64
switch ds {
64
65
case . optional:
@@ -126,7 +127,8 @@ public enum _PrintForDebugger {
126
127
internal static func shouldExpand(
127
128
mirror: Mirror ,
128
129
collectionStatus: CollectionStatus ,
129
- isRoot: Bool ) -> Bool {
130
+ isRoot: Bool
131
+ ) -> Bool {
130
132
if isRoot || collectionStatus. isCollection { return true }
131
133
let count = Int ( mirror. children. count)
132
134
if count > 0 { return true }
@@ -147,7 +149,8 @@ public enum _PrintForDebugger {
147
149
parentCollectionStatus: CollectionStatus ,
148
150
refsAlreadySeen: inout Set < ObjectIdentifier > ,
149
151
maxItemCounter: inout Int ,
150
- targetStream: inout StreamType ) {
152
+ targetStream: inout StreamType
153
+ ) {
151
154
if maxItemCounter <= 0 {
152
155
return
153
156
}
0 commit comments