Skip to content

Commit 53d82b1

Browse files
author
Itai Ferber
committed
Rename sequence type to avoid ambiguity
1 parent c515b53 commit 53d82b1

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

stdlib/public/core/Codable.swift

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,91 +1217,91 @@ public protocol UnkeyedEncodingContainer {
12171217
///
12181218
/// - parameter sequence: The sequences whose contents to encode.
12191219
/// - throws: An error if any of the contained values throws an error.
1220-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Bool
1220+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Bool
12211221

12221222
/// Encodes the elements of the given sequence.
12231223
///
12241224
/// - parameter sequence: The sequences whose contents to encode.
12251225
/// - throws: An error if any of the contained values throws an error.
1226-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int
1226+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int
12271227

12281228
/// Encodes the elements of the given sequence.
12291229
///
12301230
/// - parameter sequence: The sequences whose contents to encode.
12311231
/// - throws: An error if any of the contained values throws an error.
1232-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int8
1232+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int8
12331233

12341234
/// Encodes the elements of the given sequence.
12351235
///
12361236
/// - parameter sequence: The sequences whose contents to encode.
12371237
/// - throws: An error if any of the contained values throws an error.
1238-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int16
1238+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int16
12391239

12401240
/// Encodes the elements of the given sequence.
12411241
///
12421242
/// - parameter sequence: The sequences whose contents to encode.
12431243
/// - throws: An error if any of the contained values throws an error.
1244-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int32
1244+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int32
12451245

12461246
/// Encodes the elements of the given sequence.
12471247
///
12481248
/// - parameter sequence: The sequences whose contents to encode.
12491249
/// - throws: An error if any of the contained values throws an error.
1250-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int64
1250+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int64
12511251

12521252
/// Encodes the elements of the given sequence.
12531253
///
12541254
/// - parameter sequence: The sequences whose contents to encode.
12551255
/// - throws: An error if any of the contained values throws an error.
1256-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt
1256+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt
12571257

12581258
/// Encodes the elements of the given sequence.
12591259
///
12601260
/// - parameter sequence: The sequences whose contents to encode.
12611261
/// - throws: An error if any of the contained values throws an error.
1262-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt8
1262+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt8
12631263

12641264
/// Encodes the elements of the given sequence.
12651265
///
12661266
/// - parameter sequence: The sequences whose contents to encode.
12671267
/// - throws: An error if any of the contained values throws an error.
1268-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt16
1268+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt16
12691269

12701270
/// Encodes the elements of the given sequence.
12711271
///
12721272
/// - parameter sequence: The sequences whose contents to encode.
12731273
/// - throws: An error if any of the contained values throws an error.
1274-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt32
1274+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt32
12751275

12761276
/// Encodes the elements of the given sequence.
12771277
///
12781278
/// - parameter sequence: The sequences whose contents to encode.
12791279
/// - throws: An error if any of the contained values throws an error.
1280-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt64
1280+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt64
12811281

12821282
/// Encodes the elements of the given sequence.
12831283
///
12841284
/// - parameter sequence: The sequences whose contents to encode.
12851285
/// - throws: An error if any of the contained values throws an error.
1286-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Float
1286+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Float
12871287

12881288
/// Encodes the elements of the given sequence.
12891289
///
12901290
/// - parameter sequence: The sequences whose contents to encode.
12911291
/// - throws: An error if any of the contained values throws an error.
1292-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Double
1292+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Double
12931293

12941294
/// Encodes the elements of the given sequence.
12951295
///
12961296
/// - parameter sequence: The sequences whose contents to encode.
12971297
/// - throws: An error if any of the contained values throws an error.
1298-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == String
1298+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == String
12991299

13001300
/// Encodes the elements of the given sequence.
13011301
///
13021302
/// - parameter sequence: The sequences whose contents to encode.
13031303
/// - throws: An error if any of the contained values throws an error.
1304-
mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element : Encodable
1304+
mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element : Encodable
13051305

13061306
/// Encodes a nested container keyed by the given type and returns it.
13071307
///
@@ -2895,91 +2895,91 @@ public extension UnkeyedEncodingContainer {
28952895
try encode(object)
28962896
}
28972897

2898-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Bool {
2898+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Bool {
28992899
for element in sequence {
29002900
try encode(element)
29012901
}
29022902
}
29032903

2904-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int {
2904+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int {
29052905
for element in sequence {
29062906
try encode(element)
29072907
}
29082908
}
29092909

2910-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int8 {
2910+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int8 {
29112911
for element in sequence {
29122912
try encode(element)
29132913
}
29142914
}
29152915

2916-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int16 {
2916+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int16 {
29172917
for element in sequence {
29182918
try encode(element)
29192919
}
29202920
}
29212921

2922-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int32 {
2922+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int32 {
29232923
for element in sequence {
29242924
try encode(element)
29252925
}
29262926
}
29272927

2928-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Int64 {
2928+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Int64 {
29292929
for element in sequence {
29302930
try encode(element)
29312931
}
29322932
}
29332933

2934-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt {
2934+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt {
29352935
for element in sequence {
29362936
try encode(element)
29372937
}
29382938
}
29392939

2940-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt8 {
2940+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt8 {
29412941
for element in sequence {
29422942
try encode(element)
29432943
}
29442944
}
29452945

2946-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt16 {
2946+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt16 {
29472947
for element in sequence {
29482948
try encode(element)
29492949
}
29502950
}
29512951

2952-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt32 {
2952+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt32 {
29532953
for element in sequence {
29542954
try encode(element)
29552955
}
29562956
}
29572957

2958-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == UInt64 {
2958+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == UInt64 {
29592959
for element in sequence {
29602960
try encode(element)
29612961
}
29622962
}
29632963

2964-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Float {
2964+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Float {
29652965
for element in sequence {
29662966
try encode(element)
29672967
}
29682968
}
29692969

2970-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == Double {
2970+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == Double {
29712971
for element in sequence {
29722972
try encode(element)
29732973
}
29742974
}
29752975

2976-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element == String {
2976+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element == String {
29772977
for element in sequence {
29782978
try encode(element)
29792979
}
29802980
}
29812981

2982-
public mutating func encode<Sequence : Swift.Sequence>(contentsOf sequence: Sequence) throws where Sequence.Iterator.Element : Encodable {
2982+
public mutating func encode<T : Sequence>(contentsOf sequence: T) throws where T.Iterator.Element : Encodable {
29832983
for element in sequence {
29842984
try encode(element)
29852985
}

0 commit comments

Comments
 (0)