Skip to content

[5.9][Test] Use SyntaxRewriter.rewrite not visit #66631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2023

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