Skip to content
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

Fix up Display implementations for AST nodes. #28491

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

mikebenfield
Copy link
Collaborator

Get details right like parens depending on precedence,
semicolons after statements only when warranted, etc.
I haven't extensively tested this yet, so there are likely
places where it does the wrong thing, but this will be
a slightly more principled implementation we can fix up
as needed.

Copy link
Collaborator

@d0cd d0cd left a comment

Choose a reason for hiding this comment

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

LGTM!

@mikebenfield mikebenfield force-pushed the const-folding3 branch 2 times, most recently from 8a9ce53 to f7503f2 Compare January 27, 2025 19:32
@mikebenfield mikebenfield force-pushed the display-code branch 2 times, most recently from f77f670 to ea173f8 Compare January 27, 2025 21:35
@mikebenfield mikebenfield force-pushed the const-folding3 branch 4 times, most recently from 9f6ef6b to cebc1df Compare January 28, 2025 22:13
Base automatically changed from const-folding3 to mainnet January 29, 2025 20:01
Get details right like parens depending on precedence,
semicolons after statements only when warranted, etc.
I haven't extensively tested this yet, so there are likely
places where it does the wrong thing, but this will be
a slightly more principled implementation we can fix up
as needed.
@mikebenfield mikebenfield merged commit 51eb4ff into mainnet Jan 29, 2025
10 checks passed
@mikebenfield mikebenfield deleted the display-code branch January 29, 2025 22:03
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.

2 participants