@@ -27,8 +27,8 @@ private func replaceFirstLabel(
2727}
2828
2929public struct ColorLiteralMacro : ExpressionMacro {
30- public static func expand (
31- _ macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
30+ public static func expansion (
31+ of macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
3232 ) -> ExprSyntax {
3333 let argList = replaceFirstLabel (
3434 of: macro. argumentList, with: " _colorLiteralRed "
@@ -42,8 +42,8 @@ public struct ColorLiteralMacro: ExpressionMacro {
4242}
4343
4444public struct FileLiteralMacro : ExpressionMacro {
45- public static func expand (
46- _ macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
45+ public static func expansion (
46+ of macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
4747 ) -> ExprSyntax {
4848 let argList = replaceFirstLabel (
4949 of: macro. argumentList, with: " fileReferenceLiteralResourceName "
@@ -57,8 +57,8 @@ public struct FileLiteralMacro: ExpressionMacro {
5757}
5858
5959public struct ImageLiteralMacro : ExpressionMacro {
60- public static func expand (
61- _ macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
60+ public static func expansion (
61+ of macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
6262 ) -> ExprSyntax {
6363 let argList = replaceFirstLabel (
6464 of: macro. argumentList, with: " imageLiteralResourceName "
@@ -72,8 +72,8 @@ public struct ImageLiteralMacro: ExpressionMacro {
7272}
7373
7474public struct FileIDMacro : ExpressionMacro {
75- public static func expand (
76- _ macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
75+ public static func expansion (
76+ of macro: MacroExpansionExprSyntax , in context: inout MacroExpansionContext
7777 ) -> ExprSyntax {
7878 // FIXME: Compiler has more sophisticated file ID computation
7979 let fileID = " \( context. moduleName) / \( context. fileName) "
0 commit comments