mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: protocol extensions: de-underscore isEmpty
Swift SVN r28241
This commit is contained in:
@@ -2377,11 +2377,11 @@ struct MinimalCollectionWithDefaultIsEmpty : CollectionType {
|
||||
func callStaticIsEmpty(
|
||||
collection: MinimalCollectionWithDefaultIsEmpty
|
||||
) -> Bool {
|
||||
return collection._prext_isEmpty
|
||||
return collection.isEmpty
|
||||
}
|
||||
|
||||
func callGenericIsEmpty<C : CollectionType>(collection: C) -> Bool {
|
||||
return collection._prext_isEmpty
|
||||
return collection.isEmpty
|
||||
}
|
||||
|
||||
% for dispatch in [ 'Static', 'Generic' ]:
|
||||
@@ -2422,7 +2422,7 @@ struct MinimalCollectionWithCustomIsEmpty : CollectionType {
|
||||
return OpaqueValue(i.position + 1)
|
||||
}
|
||||
|
||||
var _prext_isEmpty: Bool {
|
||||
var isEmpty: Bool {
|
||||
++MinimalCollectionWithCustomIsEmpty.timesIsEmptyWasColled
|
||||
return _count == 0
|
||||
}
|
||||
@@ -2433,7 +2433,7 @@ struct MinimalCollectionWithCustomIsEmpty : CollectionType {
|
||||
func callStaticIsEmpty(
|
||||
collection: MinimalCollectionWithCustomIsEmpty
|
||||
) -> Bool {
|
||||
return collection._prext_isEmpty
|
||||
return collection.isEmpty
|
||||
}
|
||||
|
||||
% for dispatch in [ 'Static', 'Generic' ]:
|
||||
|
||||
Reference in New Issue
Block a user