Skip to content

Terminology change: 'garbage' -> 'unexpected' #593

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
Aug 16, 2022

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Aug 15, 2022

swift-syntax update for swiftlang/swift#60563

@rintaro
Copy link
Member Author

rintaro commented Aug 15, 2022

swiftlang/swift#60563
@swift-ci Please test

@bnbarham bnbarham self-requested a review August 15, 2022 21:15
There are no "garbage" characters in Swift code. They are just
"unexpected."
@rintaro rintaro force-pushed the no-garbage-in-swift branch from fa62e0b to ec78c8f Compare August 15, 2022 21:32
@rintaro
Copy link
Member Author

rintaro commented Aug 15, 2022

swiftlang/swift#60563
@swift-ci Please test

modifiedStatements1.leadingTrivia = [.garbageText("GARBAGE")]
XCTAssertEqual([.garbageText("GARBAGE")], modifiedStatements1.leadingTrivia)
modifiedStatements1.leadingTrivia = [.unexpectedText("UNEXPECTED")]
XCTAssertEqual([.unexpectedText("UNEXPECTED")], modifiedStatements1.leadingTrivia)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to change this GARBAGE -> UNEXPECTED

@rintaro rintaro merged commit dd96f12 into swiftlang:main Aug 16, 2022
@rintaro rintaro deleted the no-garbage-in-swift branch August 16, 2022 06:41
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