From 6784ee112996f21170ad7474082dc4ce1f062e99 Mon Sep 17 00:00:00 2001 From: ChrisBenua Date: Sun, 1 Feb 2026 23:27:46 +0300 Subject: [PATCH] CompilerPlugin.resolveMacro robust solution for getting module and type name --- Sources/SwiftCompilerPlugin/CompilerPlugin.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift index 850f7869aca..7bea6f4570d 100644 --- a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift +++ b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift @@ -66,9 +66,7 @@ extension CompilerPlugin { let qualifedName = "\(moduleName).\(typeName)" for type in providingMacros { - // FIXME: Is `String(reflecting:)` stable? - // Getting the module name and type name should be more robust. - let name = String(reflecting: type) + let name = _typeName(type, qualified: true) if name == qualifedName { return type }