Skip to content

Add a .trimmed to remove leading/trailing trivia #1308

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
Feb 3, 2023

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Feb 2, 2023

It's very common in macros to want the node without any trivia, add withoutTrivia back in but under a name that makes it clear it isn't removing all trivia.

@bnbarham bnbarham requested a review from DougGregor February 2, 2023 22:45
@bnbarham bnbarham requested a review from ahoppen as a code owner February 2, 2023 22:45
It's very common in macros to want the node without any trivia, add
`withoutTrivia` but under a name that makes it clear it isn't removing
*all* trivia.
@bnbarham
Copy link
Contributor Author

bnbarham commented Feb 2, 2023

@swift-ci please test

@DougGregor DougGregor merged commit 27d0697 into swiftlang:main Feb 3, 2023
@bnbarham bnbarham deleted the trimmed-trivia branch February 3, 2023 16:58
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