File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -83,20 +83,17 @@ public struct MockedMacro: PeerMacro {
83
83
84
84
// Functions
85
85
86
- let functions : [ Function ] = functionBuilder (
87
- protocolDecl: protocolDecl,
88
- members: members
89
- )
86
+ let functions : [ Function ] = functionBuilder ( protocolDecl: protocolDecl, members: members)
90
87
91
88
let functionVariableDefinitions : String = functionVariableDefinitions ( functions: functions)
92
89
let functionVariableInitDefinitions : String = functionVariableInitDefinitions ( functions: functions)
93
90
let functionVariableInitAssignments : String = functionVariableInitAssignments ( functions: functions)
94
91
let functionImplementations : String = functionImplementations ( functions: functions, accessLevel: accessLevel)
95
92
96
93
// Check if the protocol conforms to AnyObject
97
- let requiresClassConformance = protocolDecl. inheritanceClause? . inheritedTypes. contains ( where : {
98
- $0. type. description. trimmingCharacters ( in: . whitespacesAndNewlines) == " AnyObject "
99
- } ) ?? false
94
+ let requiresClassConformance = protocolDecl. inheritanceClause? . inheritedTypes. contains (
95
+ where : { $0. type. description. trimmingCharacters ( in: . whitespacesAndNewlines) == " AnyObject " }
96
+ ) ?? false
100
97
101
98
let objectType : String = requiresClassConformance ? " class " : " struct "
102
99
You can’t perform that action at this time.
0 commit comments