@@ -57,7 +57,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
5757 func decodeNil( ) throws -> Bool {
5858 guard currentIndex < ( count ?? 0 ) else {
5959 let context = DecodingError . Context (
60- codingPath: codingPath + [ IndexKey ( currentIndex) ] ,
60+ codingPath: codingPath + [ IndexCodingKey ( currentIndex) ] ,
6161 debugDescription: " Unkeyed container is at end. "
6262 )
6363 throw DecodingError . valueNotFound ( Any ? . self, context)
@@ -81,7 +81,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
8181 return try value. convert ( )
8282 } catch {
8383 let context = DecodingError . Context (
84- codingPath: codingPath + [ IndexKey ( index) ] ,
84+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
8585 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
8686 underlyingError: error
8787 )
@@ -100,7 +100,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
100100 return try value. convert ( )
101101 } catch {
102102 let context = DecodingError . Context (
103- codingPath: codingPath + [ IndexKey ( index) ] ,
103+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
104104 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
105105 underlyingError: error
106106 )
@@ -119,7 +119,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
119119 return try value. convert ( )
120120 } catch {
121121 let context = DecodingError . Context (
122- codingPath: codingPath + [ IndexKey ( index) ] ,
122+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
123123 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
124124 underlyingError: error
125125 )
@@ -138,7 +138,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
138138 return try value. convert ( )
139139 } catch {
140140 let context = DecodingError . Context (
141- codingPath: codingPath + [ IndexKey ( index) ] ,
141+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
142142 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
143143 underlyingError: error
144144 )
@@ -157,7 +157,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
157157 return try value. convert ( )
158158 } catch {
159159 let context = DecodingError . Context (
160- codingPath: codingPath + [ IndexKey ( index) ] ,
160+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
161161 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
162162 underlyingError: error
163163 )
@@ -176,7 +176,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
176176 return try value. convert ( )
177177 } catch {
178178 let context = DecodingError . Context (
179- codingPath: codingPath + [ IndexKey ( index) ] ,
179+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
180180 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
181181 underlyingError: error
182182 )
@@ -195,7 +195,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
195195 return try value. convert ( )
196196 } catch {
197197 let context = DecodingError . Context (
198- codingPath: codingPath + [ IndexKey ( index) ] ,
198+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
199199 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
200200 underlyingError: error
201201 )
@@ -214,7 +214,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
214214 return try value. convert ( )
215215 } catch {
216216 let context = DecodingError . Context (
217- codingPath: codingPath + [ IndexKey ( index) ] ,
217+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
218218 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
219219 underlyingError: error
220220 )
@@ -233,7 +233,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
233233 return try value. convert ( )
234234 } catch {
235235 let context = DecodingError . Context (
236- codingPath: codingPath + [ IndexKey ( index) ] ,
236+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
237237 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
238238 underlyingError: error
239239 )
@@ -252,7 +252,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
252252 return try value. convert ( )
253253 } catch {
254254 let context = DecodingError . Context (
255- codingPath: codingPath + [ IndexKey ( index) ] ,
255+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
256256 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
257257 underlyingError: error
258258 )
@@ -271,7 +271,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
271271 return try value. convert ( )
272272 } catch {
273273 let context = DecodingError . Context (
274- codingPath: codingPath + [ IndexKey ( index) ] ,
274+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
275275 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
276276 underlyingError: error
277277 )
@@ -290,7 +290,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
290290 return try value. convert ( )
291291 } catch {
292292 let context = DecodingError . Context (
293- codingPath: codingPath + [ IndexKey ( index) ] ,
293+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
294294 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
295295 underlyingError: error
296296 )
@@ -309,7 +309,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
309309 return try value. convert ( )
310310 } catch {
311311 let context = DecodingError . Context (
312- codingPath: codingPath + [ IndexKey ( index) ] ,
312+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
313313 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
314314 underlyingError: error
315315 )
@@ -328,7 +328,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
328328 return try value. convert ( )
329329 } catch {
330330 let context = DecodingError . Context (
331- codingPath: codingPath + [ IndexKey ( index) ] ,
331+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
332332 debugDescription: " Expected \( type) but found \( value. backingTypeDescription) " ,
333333 underlyingError: error
334334 )
@@ -346,7 +346,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
346346 let nestedDecoder = InternalDecoder (
347347 storage: decoder. storage,
348348 value: value,
349- codingPath: codingPath + [ IndexKey ( index) ] ,
349+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
350350 userInfo: decoder. userInfo,
351351 parent: decoder
352352 )
@@ -360,7 +360,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
360360 let nestedDecoder = InternalDecoder (
361361 storage: decoder. storage,
362362 value: value,
363- codingPath: codingPath + [ IndexKey ( index) ] ,
363+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
364364 userInfo: decoder. userInfo,
365365 parent: decoder
366366 )
@@ -373,7 +373,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
373373 let nestedDecoder = InternalDecoder (
374374 storage: decoder. storage,
375375 value: value,
376- codingPath: codingPath + [ IndexKey ( index) ] ,
376+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
377377 userInfo: decoder. userInfo,
378378 parent: decoder
379379 )
@@ -386,7 +386,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
386386 return InternalDecoder (
387387 storage: decoder. storage,
388388 value: value,
389- codingPath: codingPath + [ IndexKey ( index) ] ,
389+ codingPath: codingPath + [ IndexCodingKey ( index) ] ,
390390 userInfo: decoder. userInfo,
391391 parent: decoder
392392 )
@@ -399,7 +399,7 @@ final class ArrayDecoder: UnkeyedDecodingContainer {
399399 ) throws -> ( JSON , Int ) {
400400 guard !isAtEnd else {
401401 let context = DecodingError . Context (
402- codingPath: codingPath + [ IndexKey ( currentIndex) ] ,
402+ codingPath: codingPath + [ IndexCodingKey ( currentIndex) ] ,
403403 debugDescription: " Couldn't find value "
404404 )
405405 throw DecodingError . valueNotFound ( type, context)
0 commit comments