mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #3576 from parkera/se86_outputstream
Rename OutputStream to OutputStreamable [SE-0086]
This commit is contained in:
@@ -140,7 +140,7 @@ internal func _reflect<T>(_ x: T) -> _Mirror
|
||||
|
||||
/// Dump an object's contents using its mirror to the specified output stream.
|
||||
@discardableResult
|
||||
public func dump<T, TargetStream : OutputStream>(
|
||||
public func dump<T, TargetStream : TextOutputStream>(
|
||||
_ value: T,
|
||||
to target: inout TargetStream,
|
||||
name: String? = nil,
|
||||
@@ -183,7 +183,7 @@ public func dump<T>(
|
||||
}
|
||||
|
||||
/// Dump an object's contents. User code should use dump().
|
||||
internal func _dump_unlocked<TargetStream : OutputStream>(
|
||||
internal func _dump_unlocked<TargetStream : TextOutputStream>(
|
||||
_ value: Any,
|
||||
to target: inout TargetStream,
|
||||
name: String?,
|
||||
@@ -282,7 +282,7 @@ internal func _dump_unlocked<TargetStream : OutputStream>(
|
||||
|
||||
/// Dump information about an object's superclass, given a mirror reflecting
|
||||
/// that superclass.
|
||||
internal func _dumpSuperclass_unlocked<TargetStream : OutputStream>(
|
||||
internal func _dumpSuperclass_unlocked<TargetStream : TextOutputStream>(
|
||||
mirror: Mirror,
|
||||
to target: inout TargetStream,
|
||||
indent: Int,
|
||||
|
||||
Reference in New Issue
Block a user