Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 29, 2020

When creating a node using e.g. replacingTrailingTrivia, it would still have the same the same rootId as before. Because of this SyntaxRewriter would not detect the node as having changed, thus failing to replace it in the rewritten tree.

…created by a replacing* function

When creating a node using e.g. `replacingTrailingTrivia`, it would
still have the same the same rootId as before. Because of this
`SyntaxRewriter` would not detect the node as having changed, thus
failing to replace it in the rewritten tree.
@ahoppen ahoppen requested a review from akyrtzi January 29, 2020 19:58
@ahoppen
Copy link
Member Author

ahoppen commented Jan 29, 2020

@swift-ci Please test

@akyrtzi
Copy link
Contributor

akyrtzi commented Jan 29, 2020

Could you also create a PR on swift-5.2 branch?

@ahoppen ahoppen merged commit 16f6af5 into swiftlang:master Jan 29, 2020
@ahoppen ahoppen deleted the update-root-id branch January 14, 2023 08:22
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
Correct version string for `--version` flag (master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants