@@ -125,7 +125,7 @@ extension Attachment where AttachableValue == AnyAttachable {
125
125
}
126
126
#endif
127
127
128
- /// A type-erased container type that represents any attachable value.
128
+ /// A type-erased wrapper type that represents any attachable value.
129
129
///
130
130
/// This type is not generally visible to developers. It is used when posting
131
131
/// events of kind ``Event/Kind/valueAttached(_:)``. Test tools authors who use
@@ -137,7 +137,7 @@ extension Attachment where AttachableValue == AnyAttachable {
137
137
// `Event.Kind.valueAttached(_:)`, otherwise it would be declared private.
138
138
// }
139
139
@_spi ( ForToolsIntegrationOnly)
140
- public struct AnyAttachable : AttachableContainer , Copyable , Sendable {
140
+ public struct AnyAttachable : AttachableWrapper , Copyable , Sendable {
141
141
#if !SWT_NO_LAZY_ATTACHMENTS
142
142
public typealias AttachableValue = any Attachable & Sendable /* & Copyable rdar://137614425 */
143
143
#else
@@ -215,13 +215,13 @@ extension Attachment where AttachableValue: ~Copyable {
215
215
}
216
216
}
217
217
218
- extension Attachment where AttachableValue: AttachableContainer & ~ Copyable {
218
+ extension Attachment where AttachableValue: AttachableWrapper & ~ Copyable {
219
219
/// The value of this attachment.
220
220
///
221
- /// When the attachable value's type conforms to ``AttachableContainer ``, the
222
- /// value of this property equals the container 's underlying attachable value.
221
+ /// When the attachable value's type conforms to ``AttachableWrapper ``, the
222
+ /// value of this property equals the wrapper 's underlying attachable value.
223
223
/// To access the attachable value as an instance of `T` (where `T` conforms
224
- /// to ``AttachableContainer ``), specify the type explicitly:
224
+ /// to ``AttachableWrapper ``), specify the type explicitly:
225
225
///
226
226
/// ```swift
227
227
/// let attachableValue = attachment.attachableValue as T
@@ -322,9 +322,9 @@ extension Attachment where AttachableValue: ~Copyable {
322
322
public static func record( _ attachment: consuming Self , sourceLocation: SourceLocation = #_sourceLocation) {
323
323
do {
324
324
let attachmentCopy = try attachment. withUnsafeBytes { buffer in
325
- let attachableContainer = AnyAttachable ( attachableValue: Array ( buffer) )
325
+ let attachableWrapper = AnyAttachable ( attachableValue: Array ( buffer) )
326
326
return Attachment < AnyAttachable > (
327
- _attachableValue: attachableContainer ,
327
+ _attachableValue: attachableWrapper ,
328
328
fileSystemPath: attachment. fileSystemPath,
329
329
_preferredName: attachment. preferredName, // invokes preferredName(for:basedOn:)
330
330
sourceLocation: sourceLocation
0 commit comments