From c330514fc807ac1054f86b1f1237923fb312e606 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Thu, 30 May 2024 10:33:13 -0700 Subject: [PATCH] Expose `typeName` function via `@_spi` We have this function copied and pasted a few places now, and I wanted it elsewhere. I'm not sure what a public interface should look like, since it mimics Swift's own `_typeName` function, but for now we could just use SPI. --- Sources/CustomDump/Internal/AnyType.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CustomDump/Internal/AnyType.swift b/Sources/CustomDump/Internal/AnyType.swift index 9b5782ee..4f7a410a 100644 --- a/Sources/CustomDump/Internal/AnyType.swift +++ b/Sources/CustomDump/Internal/AnyType.swift @@ -1,4 +1,4 @@ -func typeName( +@_spi(TypeName) public func typeName( _ type: Any.Type, qualified: Bool = true, genericsAbbreviated: Bool = true