Skip to content

Commit 174e327

Browse files
authored
Use arguments instead of argumentList in the macro template (#7424)
* **Explanation**: `argumentList` has been deprecated. The Swift macro template should use `arguments` instead. * **Scope**: The Swift macro template * **Risk**: Very low * **Testing**: Made the same modification in a macro package that was freshly generated from the template and verified that it builds without warnings * **Issue**: n/a * **Reviewer**: @MaxDesiatov on #7422
1 parent 9f17143 commit 174e327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/InitPackage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ public final class InitPackage {
836836
of node: some FreestandingMacroExpansionSyntax,
837837
in context: some MacroExpansionContext
838838
) -> ExprSyntax {
839-
guard let argument = node.argumentList.first?.expression else {
839+
guard let argument = node.arguments.first?.expression else {
840840
fatalError("compiler bug: the macro does not have any arguments")
841841
}
842842

0 commit comments

Comments
 (0)