File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/SwiftSyntaxMacroExpansionTest Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ final class ExpressionMacroTests: XCTestCase {
240240 of node: some FreestandingMacroExpansionSyntax ,
241241 in context: some MacroExpansionContext
242242 ) throws -> ExprSyntax {
243- guard let argument = node. argumentList . first? . expression else {
243+ guard let argument = node. arguments . first? . expression else {
244244 fatalError ( " Must receive an argument " )
245245 }
246246 guard var node = argument. as ( InfixOperatorExprSyntax . self) else {
@@ -265,7 +265,7 @@ final class ExpressionMacroTests: XCTestCase {
265265 of node: some FreestandingMacroExpansionSyntax ,
266266 in context: some MacroExpansionContext
267267 ) throws -> ExprSyntax {
268- guard let argument = node. argumentList . first? . expression else {
268+ guard let argument = node. arguments . first? . expression else {
269269 fatalError ( " Must receive an argument " )
270270 }
271271 context. addDiagnostics ( from: MyError ( ) , node: argument)
You can’t perform that action at this time.
0 commit comments