Skip to content

Commit fadc368

Browse files
author
Enrico Granata
committed
Proper indentation of function declarations
1 parent 1eb200c commit fadc368

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

stdlib/public/core/PrintForDebugger.swift

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,26 @@ public enum _PrintForDebugger {
4040
}
4141

4242
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+
}
4848
}
4949

5050
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+
}
5656
}
5757

5858
internal static func asStringRepresentation(
5959
value: Any?,
6060
mirror: Mirror,
61-
count: Int) -> String? {
61+
count: Int
62+
) -> String? {
6263
let ds = mirror.displayStyle ?? .`struct`
6364
switch ds {
6465
case .optional:
@@ -126,7 +127,8 @@ public enum _PrintForDebugger {
126127
internal static func shouldExpand(
127128
mirror: Mirror,
128129
collectionStatus: CollectionStatus,
129-
isRoot: Bool) -> Bool {
130+
isRoot: Bool
131+
) -> Bool {
130132
if isRoot || collectionStatus.isCollection { return true }
131133
let count = Int(mirror.children.count)
132134
if count > 0 { return true }
@@ -147,7 +149,8 @@ public enum _PrintForDebugger {
147149
parentCollectionStatus: CollectionStatus,
148150
refsAlreadySeen: inout Set<ObjectIdentifier>,
149151
maxItemCounter: inout Int,
150-
targetStream: inout StreamType) {
152+
targetStream: inout StreamType
153+
) {
151154
if maxItemCounter <= 0 {
152155
return
153156
}

0 commit comments

Comments
 (0)