Skip to content

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 f9ead46)

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 f9ead46)
@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
@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.

2 participants