Skip to content

Commit

Permalink
Use arguments instead of argumentList in the macro template (#7424)
Browse files Browse the repository at this point in the history
* **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
  • Loading branch information
ahoppen committed Mar 26, 2024
1 parent 9f17143 commit 174e327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Workspace/InitPackage.swift
Expand Up @@ -836,7 +836,7 @@ public final class InitPackage {
of node: some FreestandingMacroExpansionSyntax,
in context: some MacroExpansionContext
) -> ExprSyntax {
guard let argument = node.argumentList.first?.expression else {
guard let argument = node.arguments.first?.expression else {
fatalError("compiler bug: the macro does not have any arguments")
}
Expand Down

0 comments on commit 174e327

Please sign in to comment.