From 93afb98c149254f5eee8564fc95b7e006d15a360 Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Mon, 12 Jun 2023 11:16:36 -0700 Subject: [PATCH] [Test] Use SyntaxRewriter.rewrite not visit SyntaxRewriters should use `rewrite` to create a new node, not `visit`. (cherry picked from commit f940906ac65ab1ac71900190a6a170f3cfc15f99) --- test/Macros/Inputs/syntax_macro_definitions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Macros/Inputs/syntax_macro_definitions.swift b/test/Macros/Inputs/syntax_macro_definitions.swift index f95ca9f6ec2b9..04b7427a55a6f 100644 --- a/test/Macros/Inputs/syntax_macro_definitions.swift +++ b/test/Macros/Inputs/syntax_macro_definitions.swift @@ -164,7 +164,7 @@ public enum AddBlocker: ExpressionMacro { in context: some MacroExpansionContext ) -> ExprSyntax { let visitor = AddVisitor() - let result = visitor.visit(Syntax(node)) + let result = visitor.rewrite(Syntax(node)) for diag in visitor.diagnostics { context.diagnose(diag)