Skip to content

Commit 2bc24f0

Browse files
authored
Use arguments instead of argumentList in the macro template (#7422)
`argumentList` has been deprecated. We should use `arguments` instead.
1 parent a809fb5 commit 2bc24f0

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)