@@ -214,8 +214,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
214
214
"""
215
215
216
216
struct \( raw: prefix) {
217
- func \( context. createUniqueName ( " method " ) ) () { return 0 }
218
- func \( context. createUniqueName ( " method " ) ) () { return 1 }
217
+ func \( context. makeUniqueName ( " method " ) ) () { return 0 }
218
+ func \( context. makeUniqueName ( " method " ) ) () { return 1 }
219
219
}
220
220
"""
221
221
]
@@ -225,8 +225,8 @@ public struct DefineBitwidthNumberedStructsMacro: DeclarationMacro {
225
225
"""
226
226
227
227
struct \( raw: prefix) \( raw: String ( bitwidth) ) {
228
- func \( context. createUniqueName ( " method " ) ) () { }
229
- func \( context. createUniqueName ( " method " ) ) () { }
228
+ func \( context. makeUniqueName ( " method " ) ) () { }
229
+ func \( context. makeUniqueName ( " method " ) ) () { }
230
230
}
231
231
"""
232
232
}
@@ -242,15 +242,15 @@ public struct DefineDeclsWithKnownNamesMacro: DeclarationMacro {
242
242
"""
243
243
244
244
struct A {
245
- func \( context. createUniqueName ( " method " ) ) () { }
246
- func \( context. createUniqueName ( " method " ) ) () { }
245
+ func \( context. makeUniqueName ( " method " ) ) () { }
246
+ func \( context. makeUniqueName ( " method " ) ) () { }
247
247
}
248
248
""" ,
249
249
"""
250
250
251
251
struct B {
252
- func \( context. createUniqueName ( " method " ) ) () { }
253
- func \( context. createUniqueName ( " method " ) ) () { }
252
+ func \( context. makeUniqueName ( " method " ) ) () { }
253
+ func \( context. makeUniqueName ( " method " ) ) () { }
254
254
}
255
255
""" ,
256
256
"""
@@ -780,7 +780,7 @@ public struct WrapInType: PeerMacro {
780
780
funcDecl
781
781
. with (
782
782
\. identifier,
783
- " \( context. createUniqueName ( funcDecl. identifier. text) ) "
783
+ " \( context. makeUniqueName ( funcDecl. identifier. text) ) "
784
784
)
785
785
. with (
786
786
\. signature,
@@ -801,7 +801,7 @@ public struct WrapInType: PeerMacro {
801
801
802
802
let structType : DeclSyntax =
803
803
"""
804
- struct \( context. createUniqueName ( funcDecl. identifier. text) ) {
804
+ struct \( context. makeUniqueName ( funcDecl. identifier. text) ) {
805
805
\( method)
806
806
}
807
807
"""
0 commit comments