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

[AST] Only dump desugared type when visibly different (#65214) #738

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

jrtc27
Copy link
Member

@jrtc27 jrtc27 commented Jun 8, 2024

These are an artifact of how types are structured but serve little
purpose, merely showing that the type is sugared in some way. For
example, ElaboratedType's existence means struct S gets printed as
'struct S':'struct S' in the AST, which is unnecessary visual clutter.
Note that skipping the second print when the types have the same string
matches what we do for diagnostics, where the aka will be skipped.

(cherry picked from commit f9ead46931aef2978ddf350ba6523638175d7861)

These are an artifact of how types are structured but serve little
purpose, merely showing that the type is sugared in some way. For
example, ElaboratedType's existence means struct S gets printed as
'struct S':'struct S' in the AST, which is unnecessary visual clutter.
Note that skipping the second print when the types have the same string
matches what we do for diagnostics, where the aka will be skipped.

(cherry picked from commit f9ead46931aef2978ddf350ba6523638175d7861)
@jrtc27
Copy link
Member Author

jrtc27 commented Jun 8, 2024

This should reduce the churn if and when I get back to #714

@jrtc27 jrtc27 merged commit bd8d242 into dev Jun 10, 2024
6 of 7 checks passed
@jrtc27 jrtc27 deleted the ast-skip-desugar-identical branch June 10, 2024 18:40
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.

1 participant