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

Do not abbreviate items in element segments #6737

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Do not abbreviate items in element segments #6737

merged 1 commit into from
Jul 12, 2024

Conversation

tlively
Copy link
Member

@tlively tlively commented Jul 12, 2024

The full syntax for an expression in an element syntax looks like
(item (ref.null none)), but we have been printing the abbreviated
version, which omits the (item ...). This abbreviation is only valid
when the item has only a single instruction, so it is not always correct
to use it. Rather than determining whether or not to use the
abbreviation on a case-by-case basis, always print the full syntax.

The full syntax for an expression in an element syntax looks like
`(item (ref.null none))`, but we have been printing the abbreviated
version, which omits the `(item ...)`. This abbreviation is only valid
when the item has only a single instruction, so it is not always correct
to use it. Rather than determining whether or not to use the
abbreviation on a case-by-case basis, always print the full syntax.
@tlively tlively requested a review from kripken July 12, 2024 01:19
@tlively tlively merged commit c0286b6 into main Jul 12, 2024
13 checks passed
@tlively tlively deleted the print-item branch July 12, 2024 17:02
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.

None yet

2 participants