@@ -786,7 +786,8 @@ public struct ${Self}<Element>
786
786
buffer. _copyContents (
787
787
subRange: Range ( buffer. indices) ,
788
788
initializing: newBuffer. firstElementAddress)
789
- buffer = _Buffer ( newBuffer, shiftedToStartIndex: buffer. startIndex)
789
+ buffer = _Buffer (
790
+ _buffer: newBuffer, shiftedToStartIndex: buffer. startIndex)
790
791
}
791
792
792
793
@_semantics ( " array.make_mutable " )
@@ -885,8 +886,8 @@ public struct ${Self}<Element>
885
886
/// Initialization from an existing buffer does not have "array.init"
886
887
/// semantics because the caller may retain an alias to buffer.
887
888
public // @testable
888
- init ( _buffer: _ContiguousArrayBuffer < Element > ) {
889
- self . init ( _buffer: _Buffer ( _buffer, shiftedToStartIndex: 0 ) )
889
+ init ( _buffer buffer : _ContiguousArrayBuffer < Element > ) {
890
+ self . init ( _buffer: _Buffer ( _buffer: buffer , shiftedToStartIndex: 0 ) )
890
891
}
891
892
% end
892
893
@@ -1031,7 +1032,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
1031
1032
1032
1033
self = ${ Self} (
1033
1034
_buffer: _Buffer (
1034
- s. _copyToContiguousArray ( ) . _buffer,
1035
+ _buffer : s. _copyToContiguousArray ( ) . _buffer,
1035
1036
shiftedToStartIndex: 0 ) )
1036
1037
}
1037
1038
@@ -1065,7 +1066,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
1065
1066
) -> _Buffer {
1066
1067
let newBuffer = _ContiguousArrayBuffer < Element > (
1067
1068
uninitializedCount: 0 , minimumCapacity: minimumCapacity)
1068
- return _Buffer ( newBuffer, shiftedToStartIndex: 0 )
1069
+ return _Buffer ( _buffer : newBuffer, shiftedToStartIndex: 0 )
1069
1070
}
1070
1071
1071
1072
/// Construct a ${Self} of `count` uninitialized elements.
@@ -1118,7 +1119,8 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
1118
1119
storage, to: _ContiguousArrayStorage< Element> . self ) )
1119
1120
1120
1121
return (
1121
- Array ( _buffer: _Buffer ( innerBuffer, shiftedToStartIndex: 0 ) ) ,
1122
+ Array (
1123
+ _buffer: _Buffer ( _buffer: innerBuffer, shiftedToStartIndex: 0 ) ) ,
1122
1124
innerBuffer. firstElementAddress)
1123
1125
}
1124
1126
@@ -1203,7 +1205,8 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
1203
1205
_buffer. _copyContents (
1204
1206
subRange: Range ( _buffer. indices) ,
1205
1207
initializing: newBuffer. firstElementAddress)
1206
- _buffer = _Buffer ( newBuffer, shiftedToStartIndex: _buffer. startIndex)
1208
+ _buffer = _Buffer (
1209
+ _buffer: newBuffer, shiftedToStartIndex: _buffer. startIndex)
1207
1210
}
1208
1211
_sanityCheck ( capacity >= minimumCapacity)
1209
1212
}
@@ -1933,7 +1936,7 @@ internal func _arrayOutOfPlaceUpdate<_Buffer, Initializer>(
1933
1936
let tailEnd = source. endIndex
1934
1937
source. _copyContents ( subRange: tailStart..< tailEnd, initializing: newEnd)
1935
1938
}
1936
- source = _Buffer ( dest, shiftedToStartIndex: source. startIndex)
1939
+ source = _Buffer ( _buffer : dest, shiftedToStartIndex: source. startIndex)
1937
1940
}
1938
1941
1939
1942
internal struct _InitializePointer < T> : _PointerFunction {
@@ -2159,7 +2162,7 @@ extension ArraySlice {
2159
2162
init ( _startIndex: Int ) {
2160
2163
self . init (
2161
2164
_buffer: _Buffer (
2162
- ContiguousArray ( ) . _buffer,
2165
+ _buffer : ContiguousArray ( ) . _buffer,
2163
2166
shiftedToStartIndex: _startIndex) )
2164
2167
}
2165
2168
}
0 commit comments