Skip to content

Commit 121b680

Browse files
committed
Update Swift Redefine type
1 parent ec0a8f9 commit 121b680

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ClassDumpRuntimeSwift/CDGenerationOptions.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public struct CDGenerationOptions: Codable, Hashable, Identifiable {
1010
public var stripDtorMethod: Bool
1111
public var addSymbolImageComments: Bool
1212
public var addIvarOffsetComments: Bool
13+
public var expandIvarRecordTypeMembers: Bool
1314
public var id: Self { self }
1415

1516
public init(
@@ -20,7 +21,8 @@ public struct CDGenerationOptions: Codable, Hashable, Identifiable {
2021
stripCtorMethod: Bool = false,
2122
stripDtorMethod: Bool = false,
2223
addSymbolImageComments: Bool = false,
23-
addIvarOffsetComments: Bool = false
24+
addIvarOffsetComments: Bool = false,
25+
expandIvarRecordTypeMembers: Bool = false
2426
) {
2527
self.stripProtocolConformance = stripProtocolConformance
2628
self.stripOverrides = stripOverrides
@@ -30,6 +32,7 @@ public struct CDGenerationOptions: Codable, Hashable, Identifiable {
3032
self.stripDtorMethod = stripDtorMethod
3133
self.addSymbolImageComments = addSymbolImageComments
3234
self.addIvarOffsetComments = addIvarOffsetComments
35+
self.expandIvarRecordTypeMembers = expandIvarRecordTypeMembers
3336
}
3437

3538
}
@@ -46,6 +49,7 @@ extension CDGenerationOptions: ReferenceConvertible {
4649
options.stripDtorMethod = stripDtorMethod
4750
options.addSymbolImageComments = addSymbolImageComments
4851
options.addIvarOffsetComments = addIvarOffsetComments
52+
options.expandIvarRecordTypeMembers = expandIvarRecordTypeMembers
4953
return options
5054
}
5155

@@ -58,7 +62,8 @@ extension CDGenerationOptions: ReferenceConvertible {
5862
stripCtorMethod: source.stripCtorMethod,
5963
stripDtorMethod: source.stripDtorMethod,
6064
addSymbolImageComments: source.addSymbolImageComments,
61-
addIvarOffsetComments: source.addIvarOffsetComments
65+
addIvarOffsetComments: source.addIvarOffsetComments,
66+
expandIvarRecordTypeMembers: source.expandIvarRecordTypeMembers
6267
)
6368
}
6469

0 commit comments

Comments
 (0)