Skip to content

Only print line + column in SyntaxProtocol.debugDescription #1980

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

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 2, 2023

When SourceLocation stopped conforming to CustomStringConvertible because we added presumedLine and presumedColumn, this started printing an initializer call to SourceLocation, which was very verbose and unreadable. Just print line and column for the debug description.

When `SourceLocation` stopped conforming to `CustomStringConvertible` because we added `presumedLine` and `presumedColumn`, this started printing an initializer call to `SourceLocation`, which was very verbose and unreadable. Just print line and column for the debug description.
@ahoppen ahoppen requested a review from bnbarham August 2, 2023 16:38
@ahoppen
Copy link
Member Author

ahoppen commented Aug 2, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 18c4f9c into swiftlang:main Aug 2, 2023
@ahoppen ahoppen deleted the ahoppen/line-column-only-in-debug-description branch August 2, 2023 23: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