Merged
Conversation
Member
Author
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
Closed
6a52fda to
66fcb55
Compare
Contributor
PR Check ResultsEcosystem✅ ecosystem check detected no changes. BenchmarkLinuxWindows |
konstin
approved these changes
Jun 21, 2023
Member
konstin
left a comment
There was a problem hiding this comment.
this will make a lot more real world code formatted
| text("."), | ||
| not_yet_implemented_custom_text("NOT_IMPLEMENTED_attr") | ||
| trailing_comments(trailing_dot_comments), | ||
| (!leading_attribute_comments.is_empty()).then_some(hard_line_break()), |
Member
There was a problem hiding this comment.
oh i didn't realize write would take an option
Member
Author
There was a problem hiding this comment.
You can also pass an empty tuple. Don't know when that's useful but it's implemented ;) I even thought that Format is implemented for FormatResult<T> but that doesn't seem to be the case.
66fcb55 to
b224ea9
Compare
b224ea9 to
2c7d10a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR adds basic formatting for attribute expressions (
a.b).Test Plan
I added a file with new attribute tests (especially around comments)