@@ -125,7 +125,7 @@ extension Attachment where AttachableValue == AnyAttachable {
125125}
126126#endif
127127
128- /// A type-erased container type that represents any attachable value.
128+ /// A type-erased wrapper type that represents any attachable value.
129129///
130130/// This type is not generally visible to developers. It is used when posting
131131/// events of kind ``Event/Kind/valueAttached(_:)``. Test tools authors who use
@@ -137,7 +137,7 @@ extension Attachment where AttachableValue == AnyAttachable {
137137// `Event.Kind.valueAttached(_:)`, otherwise it would be declared private.
138138// }
139139@_spi ( ForToolsIntegrationOnly)
140- public struct AnyAttachable : AttachableContainer , Copyable , Sendable {
140+ public struct AnyAttachable : AttachableWrapper , Copyable , Sendable {
141141#if !SWT_NO_LAZY_ATTACHMENTS
142142 public typealias AttachableValue = any Attachable & Sendable /* & Copyable rdar://137614425 */
143143#else
@@ -215,13 +215,13 @@ extension Attachment where AttachableValue: ~Copyable {
215215 }
216216}
217217
218- extension Attachment where AttachableValue: AttachableContainer & ~ Copyable {
218+ extension Attachment where AttachableValue: AttachableWrapper & ~ Copyable {
219219 /// The value of this attachment.
220220 ///
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.
223223 /// 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:
225225 ///
226226 /// ```swift
227227 /// let attachableValue = attachment.attachableValue as T
@@ -322,9 +322,9 @@ extension Attachment where AttachableValue: ~Copyable {
322322 public static func record( _ attachment: consuming Self , sourceLocation: SourceLocation = #_sourceLocation) {
323323 do {
324324 let attachmentCopy = try attachment. withUnsafeBytes { buffer in
325- let attachableContainer = AnyAttachable ( attachableValue: Array ( buffer) )
325+ let attachableWrapper = AnyAttachable ( attachableValue: Array ( buffer) )
326326 return Attachment < AnyAttachable > (
327- _attachableValue: attachableContainer ,
327+ _attachableValue: attachableWrapper ,
328328 fileSystemPath: attachment. fileSystemPath,
329329 _preferredName: attachment. preferredName, // invokes preferredName(for:basedOn:)
330330 sourceLocation: sourceLocation
0 commit comments