Skip to content

Detach node when accessing .trimmed #2690

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 20, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 18, 2024

Having the trimmed node be attached to a parent was not intuitive because eg. printing the parent node would have the trimmed trivia missing, most likely forming invalid Swift code.

Motivated by #2687

Having the trimmed node be attached to a parent was not intuitive because eg. printing the parent node would have the trimmed trivia missing, most likely forming invalid Swift code.
@ahoppen ahoppen requested review from rintaro and hamishknight June 18, 2024 20:24
@ahoppen ahoppen requested a review from bnbarham as a code owner June 18, 2024 20:24
@ahoppen
Copy link
Member Author

ahoppen commented Jun 18, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 0d4c8a4 into swiftlang:main Jun 20, 2024
3 checks passed
@ahoppen ahoppen deleted the detach-node-on-trim branch June 20, 2024 17:36
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.

3 participants