@@ -157,23 +157,23 @@ internal enum _CollectionOperation : Equatable {
157
157
var newElementsIds = elementsLastMutatedStateIds
158
158
var newEndIndexId = endIndexLastMutatedStateId
159
159
switch self {
160
- case reserveCapacity:
160
+ case . reserveCapacity:
161
161
let invalidIndices = newElementsIds. indices
162
162
newElementsIds. replaceSubrange (
163
163
Range ( invalidIndices) ,
164
164
with: repeatElement ( nextStateId, count: invalidIndices. count) )
165
165
newEndIndexId = nextStateId
166
166
167
- case append:
167
+ case . append:
168
168
newElementsIds. append ( nextStateId)
169
169
newEndIndexId = nextStateId
170
170
171
- case appendContentsOf ( let count) :
171
+ case . appendContentsOf( let count) :
172
172
newElementsIds. append ( contentsOf:
173
173
repeatElement ( nextStateId, count: count) )
174
174
newEndIndexId = nextStateId
175
175
176
- case replaceRange ( let subRange, let replacementCount) :
176
+ case . replaceRange( let subRange, let replacementCount) :
177
177
newElementsIds. replaceSubrange (
178
178
subRange,
179
179
with: repeatElement ( nextStateId, count: replacementCount) )
@@ -184,7 +184,7 @@ internal enum _CollectionOperation : Equatable {
184
184
with: repeatElement ( nextStateId, count: invalidIndices. count) )
185
185
newEndIndexId = nextStateId
186
186
187
- case insert ( let atIndex) :
187
+ case . insert( let atIndex) :
188
188
newElementsIds. insert ( nextStateId, at: atIndex)
189
189
190
190
let invalidIndices = atIndex..< newElementsIds. endIndex
@@ -193,7 +193,7 @@ internal enum _CollectionOperation : Equatable {
193
193
with: repeatElement ( nextStateId, count: invalidIndices. count) )
194
194
newEndIndexId = nextStateId
195
195
196
- case insertContentsOf ( let atIndex, let count) :
196
+ case . insertContentsOf( let atIndex, let count) :
197
197
newElementsIds. insert (
198
198
contentsOf: repeatElement ( nextStateId, count: count) ,
199
199
at: atIndex)
@@ -204,7 +204,7 @@ internal enum _CollectionOperation : Equatable {
204
204
with: repeatElement ( nextStateId, count: invalidIndices. count) )
205
205
newEndIndexId = nextStateId
206
206
207
- case removeAtIndex ( let index) :
207
+ case . removeAtIndex( let index) :
208
208
newElementsIds. remove ( at: index)
209
209
210
210
let invalidIndices = index..< newElementsIds. endIndex
@@ -213,11 +213,11 @@ internal enum _CollectionOperation : Equatable {
213
213
with: repeatElement ( nextStateId, count: invalidIndices. count) )
214
214
newEndIndexId = nextStateId
215
215
216
- case removeLast:
216
+ case . removeLast:
217
217
newElementsIds. removeLast ( )
218
218
newEndIndexId = nextStateId
219
219
220
- case removeRange ( let subRange) :
220
+ case . removeRange( let subRange) :
221
221
newElementsIds. removeSubrange ( subRange)
222
222
223
223
let invalidIndices = subRange. lowerBound..< newElementsIds. endIndex
@@ -226,7 +226,7 @@ internal enum _CollectionOperation : Equatable {
226
226
with: repeatElement ( nextStateId, count: invalidIndices. count) )
227
227
newEndIndexId = nextStateId
228
228
229
- case removeAll ( let keepCapacity) :
229
+ case . removeAll( let keepCapacity) :
230
230
newElementsIds. removeAll ( keepingCapacity: keepCapacity)
231
231
newEndIndexId = nextStateId
232
232
}
0 commit comments