File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -223,10 +223,9 @@ private import _TestingInternals
223
223
/// - nameSubstring: A string which the names of matching classes all contain.
224
224
///
225
225
/// - Returns: A sequence of Swift types whose names contain `nameSubstring`.
226
- ///
227
- /// - Warning: Do not adopt this functionality in new code. It is for use by
228
- /// Swift Testing along its legacy discovery codepath only.
229
- package func types( withNamesContaining nameSubstring: String ) -> some Sequence < Any . Type > {
226
+ @_spi ( Experimental) @_spi ( ForToolsIntegrationOnly)
227
+ @available ( swift, deprecated: 100000.0 , message: " Do not adopt this functionality in new code. It will be removed in a future release. " )
228
+ public func types( withNamesContaining nameSubstring: String ) -> some Sequence < Any . Type > {
230
229
SectionBounds . all ( . typeMetadata) . lazy. flatMap { sb in
231
230
stride ( from: sb. buffer. baseAddress!, to: sb. buffer. baseAddress! + sb. buffer. count, by: SWTTypeMetadataRecordByteCount) . lazy
232
231
. compactMap { swt_getType ( fromTypeMetadataRecord: $0, ifNameContains: nameSubstring) }
You can’t perform that action at this time.
0 commit comments