-
Notifications
You must be signed in to change notification settings - Fork 440
Make leading/trailing trivia required fields #1477
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
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes please, this is a nice cleanup!
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🥳
swiftlang/swift-syntax#1477 makes `leadingTrivia` and `trailingTrivia` non-optional.
@swift-ci please test |
swiftlang/swift-syntax#1477 makes `leadingTrivia` and `trailingTrivia` non-optional.
Rather than having the possibility of `nil` trivia and requiring all clients to check every use, just return empty trivia when there are no nodes present.
swiftlang/swift#64814 @swift-ci please test |
swiftlang/swift-syntax#1477 makes `leadingTrivia` and `trailingTrivia` non-optional. (cherry picked from commit 2ad8db4)
Rather than having the possibility of
nil
trivia and requiring all clients to check every use, just return empty trivia when there are no nodes present.