@@ -227,8 +227,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
227227 """
228228
229229 struct \( raw: prefix) {
230- func \( context. createUniqueName ( " method " ) ) () { return 0 }
231- func \( context. createUniqueName ( " method " ) ) () { return 1 }
230+ func \( context. makeUniqueName ( " method " ) ) () { return 0 }
231+ func \( context. makeUniqueName ( " method " ) ) () { return 1 }
232232 }
233233 """
234234 ]
@@ -238,8 +238,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
238238 """
239239
240240 struct \( raw: prefix) \( raw: String ( bitwidth) ) {
241- func \( context. createUniqueName ( " method " ) ) () { }
242- func \( context. createUniqueName ( " method " ) ) () { }
241+ func \( context. makeUniqueName ( " method " ) ) () { }
242+ func \( context. makeUniqueName ( " method " ) ) () { }
243243 }
244244 """
245245 }
@@ -255,15 +255,15 @@ public struct DefineDeclsWithKnownNamesMacro: DeclarationMacro {
255255 """
256256
257257 struct A {
258- func \( context. createUniqueName ( " method " ) ) () { }
259- func \( context. createUniqueName ( " method " ) ) () { }
258+ func \( context. makeUniqueName ( " method " ) ) () { }
259+ func \( context. makeUniqueName ( " method " ) ) () { }
260260 }
261261 """ ,
262262 """
263263
264264 struct B {
265- func \( context. createUniqueName ( " method " ) ) () { }
266- func \( context. createUniqueName ( " method " ) ) () { }
265+ func \( context. makeUniqueName ( " method " ) ) () { }
266+ func \( context. makeUniqueName ( " method " ) ) () { }
267267 }
268268 """ ,
269269 """
@@ -853,7 +853,7 @@ public struct WrapInType: PeerMacro {
853853 funcDecl
854854 . with (
855855 \. identifier,
856- " \( context. createUniqueName ( funcDecl. identifier. text) ) "
856+ " \( context. makeUniqueName ( funcDecl. identifier. text) ) "
857857 )
858858 . with (
859859 \. signature,
@@ -874,7 +874,7 @@ public struct WrapInType: PeerMacro {
874874
875875 let structType : DeclSyntax =
876876 """
877- struct \( context. createUniqueName ( funcDecl. identifier. text) ) {
877+ struct \( context. makeUniqueName ( funcDecl. identifier. text) ) {
878878 \( method)
879879 }
880880 """
0 commit comments