@@ -227,8 +227,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
227
227
"""
228
228
229
229
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 }
232
232
}
233
233
"""
234
234
]
@@ -238,8 +238,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
238
238
"""
239
239
240
240
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 " ) ) () { }
243
243
}
244
244
"""
245
245
}
@@ -255,15 +255,15 @@ public struct DefineDeclsWithKnownNamesMacro: DeclarationMacro {
255
255
"""
256
256
257
257
struct A {
258
- func \( context. createUniqueName ( " method " ) ) () { }
259
- func \( context. createUniqueName ( " method " ) ) () { }
258
+ func \( context. makeUniqueName ( " method " ) ) () { }
259
+ func \( context. makeUniqueName ( " method " ) ) () { }
260
260
}
261
261
""" ,
262
262
"""
263
263
264
264
struct B {
265
- func \( context. createUniqueName ( " method " ) ) () { }
266
- func \( context. createUniqueName ( " method " ) ) () { }
265
+ func \( context. makeUniqueName ( " method " ) ) () { }
266
+ func \( context. makeUniqueName ( " method " ) ) () { }
267
267
}
268
268
""" ,
269
269
"""
@@ -853,7 +853,7 @@ public struct WrapInType: PeerMacro {
853
853
funcDecl
854
854
. with (
855
855
\. identifier,
856
- " \( context. createUniqueName ( funcDecl. identifier. text) ) "
856
+ " \( context. makeUniqueName ( funcDecl. identifier. text) ) "
857
857
)
858
858
. with (
859
859
\. signature,
@@ -874,7 +874,7 @@ public struct WrapInType: PeerMacro {
874
874
875
875
let structType : DeclSyntax =
876
876
"""
877
- struct \( context. createUniqueName ( funcDecl. identifier. text) ) {
877
+ struct \( context. makeUniqueName ( funcDecl. identifier. text) ) {
878
878
\( method)
879
879
}
880
880
"""
0 commit comments