From f940906ac65ab1ac71900190a6a170f3cfc15f99 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`. --- 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 ca12537ee2413..100c2d420f89f 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)