Skip to content

Commit f940906

Browse files
committed
[Test] Use SyntaxRewriter.rewrite not visit
SyntaxRewriters should use `rewrite` to create a new node, not `visit`.
1 parent b5062bd commit f940906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Macros/Inputs/syntax_macro_definitions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public enum AddBlocker: ExpressionMacro {
164164
in context: some MacroExpansionContext
165165
) -> ExprSyntax {
166166
let visitor = AddVisitor()
167-
let result = visitor.visit(Syntax(node))
167+
let result = visitor.rewrite(Syntax(node))
168168

169169
for diag in visitor.diagnostics {
170170
context.diagnose(diag)

0 commit comments

Comments
 (0)