mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Follow stdlib's leading underscore rule (#95)
This commit is contained in:
1 parent
751ae1b08b
commit
4c22d00065
3 files changed
+9
-9
No files matched your search
+5
-5
@@ -96,10 +96,10 @@ extension OrderedDictionary.Elements.SubSequence: Sequence {
|
||||
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
internal init(_ base: OrderedDictionary.Elements.SubSequence) {
|
||||
self._base = base._base
|
||||
self._end = base._bounds.upperBound
|
||||
self._index = base._bounds.lowerBound
|
||||
internal init(_base: OrderedDictionary.Elements.SubSequence) {
|
||||
self._base = _base._base
|
||||
self._end = _base._bounds.upperBound
|
||||
self._index = _base._bounds.lowerBound
|
||||
}
|
||||
|
||||
/// Advances to the next element and returns it, or `nil` if no next
|
||||
@@ -118,7 +118,7 @@ extension OrderedDictionary.Elements.SubSequence: Sequence {
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
public func makeIterator() -> Iterator {
|
||||
Iterator(self)
|
||||
Iterator(_base: self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ extension OrderedSet: RandomAccessCollection {
|
||||
@inlinable
|
||||
public subscript(bounds: Range<Int>) -> SubSequence {
|
||||
_failEarlyRangeCheck(bounds, bounds: startIndex ..< endIndex)
|
||||
return SubSequence(base: self, bounds: bounds)
|
||||
return SubSequence(_base: self, bounds: bounds)
|
||||
}
|
||||
|
||||
/// A Boolean value indicating whether the collection is empty.
|
||||
|
||||
@@ -26,8 +26,8 @@ extension OrderedSet {
|
||||
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
internal init(base: OrderedSet, bounds: Range<Int>) {
|
||||
self._base = base
|
||||
internal init(_base: OrderedSet, bounds: Range<Int>) {
|
||||
self._base = _base
|
||||
self._bounds = bounds
|
||||
}
|
||||
}
|
||||
@@ -289,7 +289,7 @@ extension OrderedSet.SubSequence: RandomAccessCollection {
|
||||
@inline(__always)
|
||||
public subscript(bounds: Range<Int>) -> SubSequence {
|
||||
_failEarlyRangeCheck(bounds, bounds: startIndex ..< endIndex)
|
||||
return SubSequence(base: _base, bounds: bounds)
|
||||
return SubSequence(_base: _base, bounds: bounds)
|
||||
}
|
||||
|
||||
/// A Boolean value indicating whether the collection is empty.
|
||||
|
||||
Reference in new issue
Block a user