stdlib: underscore MirrorType

Part of removing the old mirrors.

rdar://21428474

Swift SVN r29833
This commit is contained in:
Dmitri Hrybenko
2015-07-01 04:05:48 +00:00
parent c5dd8bea82
commit 4eb24da01b
33 changed files with 128 additions and 128 deletions

View File

@@ -200,7 +200,7 @@ extension String.CharacterView : CollectionType {
}
/// Returns a mirror that reflects `self`.
public func _getMirror() -> MirrorType {
public func _getMirror() -> _MirrorType {
return _IndexMirror(self)
}
}
@@ -228,7 +228,7 @@ extension String.CharacterView : CollectionType {
return Character(String(unicodeScalars[i._base..<i._endBase]))
}
internal struct _IndexMirror : MirrorType {
internal struct _IndexMirror : _MirrorType {
var _value: Index
init(_ x: Index) {
@@ -245,8 +245,8 @@ extension String.CharacterView : CollectionType {
var count: Int { return 0 }
subscript(i: Int) -> (String, MirrorType) {
_preconditionFailure("MirrorType access out of bounds")
subscript(i: Int) -> (String, _MirrorType) {
_preconditionFailure("_MirrorType access out of bounds")
}
var summary: String { return "\(_value._utf16Index)" }