Skip to content

Conversation

@bnbarham
Copy link
Contributor

  • Explanation: Updates macro tests to use SyntaxRewriter.rewrite rather than visit, which is the intended API for rewriting (visit is more of an internal detail).
  • Scope: Tests
  • Risk: None, just updates a test.
  • Original PR: [Test] Use SyntaxRewriter.rewrite not visit #66569

SyntaxRewriters should use `rewrite` to create a new node, not `visit`.

(cherry picked from commit f940906)
@bnbarham bnbarham requested a review from a team as a code owner June 14, 2023 16:35
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham changed the title [Test] Use SyntaxRewriter.rewrite not visit [5.9][Test] Use SyntaxRewriter.rewrite not visit Jun 14, 2023
@bnbarham bnbarham added swift 5.9 🍒 release cherry pick Flag: Release branch cherry picks labels Jun 14, 2023
@bnbarham bnbarham merged commit 1bf42db into swiftlang:release/5.9 Jun 15, 2023
@bnbarham bnbarham deleted the cherry-use-rewrite branch June 15, 2023 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 5.9

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants