Skip to content

Add a node representing an omitted expression #1394

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

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Add a node representing an omitted expression #1394

merged 1 commit into from
Jul 16, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jul 16, 2020

As a follow-up to #1319 (comment), this PR adds an OmittedExpression AST node with a proper range for use in diagnostics. Also makes sure that arrays of externrefs are never considered static, in turn yielding the expected diagnostic:

  ERROR AS100: Not implemented: ref.null

   var a: externref[] = [ , ];
                         ^

(Note that the code above is still invalid for other reasons)

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit f131785 into master Jul 16, 2020
@dcodeIO dcodeIO deleted the ast-omitted branch July 16, 2020 02:19
@github-actions
Copy link

🎉 This PR is included in version 0.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant