Skip to content

Commit 0c4a59b

Browse files
authored
Merge pull request #66569 from bnbarham/use-rewrite
[Test] Use SyntaxRewriter.rewrite not visit
2 parents 8b48a0d + f940906 commit 0c4a59b

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
@@ -184,7 +184,7 @@ public enum AddBlocker: ExpressionMacro {
184184
in context: some MacroExpansionContext
185185
) -> ExprSyntax {
186186
let visitor = AddVisitor()
187-
let result = visitor.visit(Syntax(node))
187+
let result = visitor.rewrite(Syntax(node))
188188

189189
for diag in visitor.diagnostics {
190190
context.diagnose(diag)

0 commit comments

Comments
 (0)