@@ -27,6 +27,8 @@ struct ColumnMacro: ExpressionMacro {
27
27
28
28
static var signature : TypeSyntax = " T "
29
29
30
+ static var owningModule : String = " Swift "
31
+
30
32
static func apply(
31
33
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
32
34
) -> MacroResult < ExprSyntax > {
@@ -51,6 +53,8 @@ struct LineMacro: ExpressionMacro {
51
53
52
54
static var signature : TypeSyntax = " T "
53
55
56
+ static var owningModule : String = " Swift "
57
+
54
58
static func apply(
55
59
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
56
60
) -> MacroResult < ExprSyntax > {
@@ -87,6 +91,8 @@ struct FunctionMacro: ExpressionMacro {
87
91
88
92
static var signature : TypeSyntax = " T "
89
93
94
+ static var owningModule : String = " Swift "
95
+
90
96
/// Form a function name.
91
97
private static func formFunctionName(
92
98
_ baseName: String , _ parameters: ParameterClauseSyntax ? ,
@@ -221,6 +227,10 @@ struct ColorLiteralMacro: ExpressionMacro {
221
227
) -> T
222
228
"""
223
229
230
+ // FIXME: Not entirely correct, should use _ColorLiteralType from
231
+ // appropriate place.
232
+ static var owningModule : String = " Swift "
233
+
224
234
static func apply(
225
235
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
226
236
) -> MacroResult < ExprSyntax > {
@@ -250,6 +260,8 @@ struct FileLiteralMacro: ExpressionMacro {
250
260
static var signature : TypeSyntax =
251
261
" (resourceName path: String) -> T "
252
262
263
+ static var owningModule : String = " Swift "
264
+
253
265
static func apply(
254
266
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
255
267
) -> MacroResult < ExprSyntax > {
@@ -279,6 +291,9 @@ struct ImageLiteralMacro: ExpressionMacro {
279
291
static var signature : TypeSyntax =
280
292
" (resourceName path: String) -> T "
281
293
294
+ // FIXME: Not really correct, use _ImageLiteralType
295
+ static var owningModule : String = " Swift "
296
+
282
297
static func apply(
283
298
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
284
299
) -> MacroResult < ExprSyntax > {
@@ -307,6 +322,8 @@ struct FilePathMacro: ExpressionMacro {
307
322
308
323
static var signature : TypeSyntax = " T "
309
324
325
+ static var owningModule : String = " Swift "
326
+
310
327
static func apply(
311
328
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
312
329
) -> MacroResult < ExprSyntax > {
@@ -335,6 +352,8 @@ struct FileIDMacro: ExpressionMacro {
335
352
336
353
static var signature : TypeSyntax = " T "
337
354
355
+ static var owningModule : String = " Swift "
356
+
338
357
static func apply(
339
358
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
340
359
) -> MacroResult < ExprSyntax > {
@@ -369,6 +388,8 @@ struct FileMacro: ExpressionMacro {
369
388
370
389
static var signature : TypeSyntax = " T "
371
390
391
+ static var owningModule : String = " Swift "
392
+
372
393
static func apply(
373
394
_ macro: MacroExpansionExprSyntax , in context: MacroEvaluationContext
374
395
) -> MacroResult < ExprSyntax > {
0 commit comments