-
-
Notifications
You must be signed in to change notification settings - Fork 624
/
Copy pathEquality.generated.swift
249 lines (246 loc) · 9.6 KB
/
Equality.generated.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
// Generated using Sourcery 0.9.0 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
// swiftlint:disable vertical_whitespace
extension ArrayType {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? ArrayType else { return false }
if self.name != rhs.name { return false }
if self.elementTypeName != rhs.elementTypeName { return false }
return true
}
}
extension AssociatedValue {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? AssociatedValue else { return false }
if self.localName != rhs.localName { return false }
if self.externalName != rhs.externalName { return false }
if self.typeName != rhs.typeName { return false }
if self.annotations != rhs.annotations { return false }
return true
}
}
extension Attribute {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Attribute else { return false }
if self.name != rhs.name { return false }
if self.arguments != rhs.arguments { return false }
if self._description != rhs._description { return false }
return true
}
}
extension Class {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Class else { return false }
return super.isEqual(rhs)
}
}
extension ClosureType {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? ClosureType else { return false }
if self.name != rhs.name { return false }
if self.parameters != rhs.parameters { return false }
if self.returnTypeName != rhs.returnTypeName { return false }
if self.`throws` != rhs.`throws` { return false }
return true
}
}
extension DictionaryType {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? DictionaryType else { return false }
if self.name != rhs.name { return false }
if self.valueTypeName != rhs.valueTypeName { return false }
if self.keyTypeName != rhs.keyTypeName { return false }
return true
}
}
extension DiffableResult {
/// :nodoc:
override internal func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? DiffableResult else { return false }
if self.identifier != rhs.identifier { return false }
return true
}
}
extension Enum {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Enum else { return false }
if self.cases != rhs.cases { return false }
if self.rawTypeName != rhs.rawTypeName { return false }
return super.isEqual(rhs)
}
}
extension EnumCase {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? EnumCase else { return false }
if self.name != rhs.name { return false }
if self.rawValue != rhs.rawValue { return false }
if self.associatedValues != rhs.associatedValues { return false }
if self.annotations != rhs.annotations { return false }
return true
}
}
extension FileParserResult {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? FileParserResult else { return false }
if self.path != rhs.path { return false }
if self.module != rhs.module { return false }
if self.types != rhs.types { return false }
if self.typealiases != rhs.typealiases { return false }
if self.inlineRanges != rhs.inlineRanges { return false }
if self.contentSha != rhs.contentSha { return false }
if self.sourceryVersion != rhs.sourceryVersion { return false }
return true
}
}
extension Method {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Method else { return false }
if self.name != rhs.name { return false }
if self.selectorName != rhs.selectorName { return false }
if self.parameters != rhs.parameters { return false }
if self.returnTypeName != rhs.returnTypeName { return false }
if self.`throws` != rhs.`throws` { return false }
if self.`rethrows` != rhs.`rethrows` { return false }
if self.accessLevel != rhs.accessLevel { return false }
if self.isStatic != rhs.isStatic { return false }
if self.isClass != rhs.isClass { return false }
if self.isFailableInitializer != rhs.isFailableInitializer { return false }
if self.annotations != rhs.annotations { return false }
if self.definedInTypeName != rhs.definedInTypeName { return false }
if self.attributes != rhs.attributes { return false }
return true
}
}
extension MethodParameter {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? MethodParameter else { return false }
if self.argumentLabel != rhs.argumentLabel { return false }
if self.name != rhs.name { return false }
if self.typeName != rhs.typeName { return false }
if self.`inout` != rhs.`inout` { return false }
if self.defaultValue != rhs.defaultValue { return false }
if self.annotations != rhs.annotations { return false }
return true
}
}
extension Protocol {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Protocol else { return false }
return super.isEqual(rhs)
}
}
extension Struct {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Struct else { return false }
return super.isEqual(rhs)
}
}
extension TemplateContext {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? TemplateContext else { return false }
if self.types != rhs.types { return false }
if self.arguments != rhs.arguments { return false }
return true
}
}
extension TupleElement {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? TupleElement else { return false }
if self.name != rhs.name { return false }
if self.typeName != rhs.typeName { return false }
return true
}
}
extension TupleType {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? TupleType else { return false }
if self.name != rhs.name { return false }
if self.elements != rhs.elements { return false }
return true
}
}
extension Type {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Type else { return false }
if self.module != rhs.module { return false }
if self.typealiases != rhs.typealiases { return false }
if self.isExtension != rhs.isExtension { return false }
if self.accessLevel != rhs.accessLevel { return false }
if self.isGeneric != rhs.isGeneric { return false }
if self.localName != rhs.localName { return false }
if self.variables != rhs.variables { return false }
if self.methods != rhs.methods { return false }
if self.annotations != rhs.annotations { return false }
if self.inheritedTypes != rhs.inheritedTypes { return false }
if self.containedTypes != rhs.containedTypes { return false }
if self.parentName != rhs.parentName { return false }
if self.attributes != rhs.attributes { return false }
if self.kind != rhs.kind { return false }
return true
}
}
extension TypeName {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? TypeName else { return false }
if self.name != rhs.name { return false }
if self.attributes != rhs.attributes { return false }
if self.tuple != rhs.tuple { return false }
if self.array != rhs.array { return false }
if self.dictionary != rhs.dictionary { return false }
if self.closure != rhs.closure { return false }
return true
}
}
extension Typealias {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Typealias else { return false }
if self.aliasName != rhs.aliasName { return false }
if self.typeName != rhs.typeName { return false }
if self.parentName != rhs.parentName { return false }
return true
}
}
extension Types {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Types else { return false }
if self.types != rhs.types { return false }
return true
}
}
extension Variable {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
guard let rhs = object as? Variable else { return false }
if self.name != rhs.name { return false }
if self.typeName != rhs.typeName { return false }
if self.isComputed != rhs.isComputed { return false }
if self.isStatic != rhs.isStatic { return false }
if self.readAccess != rhs.readAccess { return false }
if self.writeAccess != rhs.writeAccess { return false }
if self.defaultValue != rhs.defaultValue { return false }
if self.annotations != rhs.annotations { return false }
if self.attributes != rhs.attributes { return false }
if self.definedInTypeName != rhs.definedInTypeName { return false }
return true
}
}