We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f25495 commit fa252fdCopy full SHA for fa252fd
lib/Macros/Sources/SwiftMacros/SwiftifyImportMacro.swift
@@ -262,12 +262,11 @@ func isRawPointerType(text: String) -> Bool {
262
263
// Remove std. or std.__1. prefix
264
func getUnqualifiedStdName(_ type: String) -> String? {
265
- if type.hasPrefix("std.") {
266
- var ty = type.dropFirst(4)
267
- if ty.hasPrefix("__1.") {
268
- ty = ty.dropFirst(4)
+ let prefixes = ["std.__1.", "std.__ndk1.", "std."]
+ for prefix in prefixes {
+ if type.hasPrefix(prefix) {
+ return String(type.dropFirst(prefix.count))
269
}
270
- return String(ty)
271
272
return nil
273
0 commit comments