stdlib: factor all _NSXXXBase classes to a single place

Swift SVN r21969
This commit is contained in:
Dmitri Hrybenko
2014-09-16 11:13:06 +00:00
parent c756296373
commit 4cf865de73
4 changed files with 21 additions and 28 deletions

View File

@@ -10,10 +10,11 @@
//
//===----------------------------------------------------------------------===//
//
// _NSSwiftArray supplies the implementation of the _CocoaArrayType API
// (and thus, NSArray the API) for our _ContiguousArrayStorage<T>. We
// can't put this implementation directly on _ContiguousArrayStorage
// because generic classes can't override Objective-C selectors.
// _ContiguousArrayStorageBase supplies the implementation of the
// _CocoaArrayType API (and thus, NSArray the API) for our
// _ContiguousArrayStorage<T>. We can't put this implementation
// directly on _ContiguousArrayStorage because generic classes can't
// override Objective-C selectors.
//
//===----------------------------------------------------------------------===//
@@ -34,7 +35,7 @@ func _isValidArraySubscript(index: Int, count: Int) -> Bool {
/// Base class of the heap buffer backing arrays.
@objc class _NSSwiftArray : _CocoaArrayType {
@objc class _ContiguousArrayStorageBase : _NSSwiftArray, _CocoaArrayType {
typealias Buffer = HeapBuffer<_ArrayBody, AnyObject>
// The optional Void arguments prevent these methods from being