Skip to content

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
@tlively tlively deleted the print-item branch July 12, 2024 17:02
@gkdn gkdn mentioned this pull request Aug 31, 2024
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.

3 participants