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

Split out a Union type from Variant #219

Merged
merged 2 commits into from
May 9, 2022

Conversation

alexcrichton
Copy link
Member

This commit splits out the union specialization from variant,
finalizing the transition to the new AST of types available in the
current component model draft. This is mostly like the prior
splittings-out where there's some duplication but it's relatively
localized and hopefully not too hard to follow.

This commit splits out the union specialization from `variant`,
finalizing the transition to the new AST of types available in the
current component model draft. This is mostly like the prior
splittings-out where there's some duplication but it's relatively
localized and hopefully not too hard to follow.
@alexcrichton alexcrichton mentioned this pull request May 5, 2022
21 tasks
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Just the TODO comments, I think.

@@ -568,6 +568,21 @@ def_instruction! {
ty: TypeId,
} : [1] => [1],

/// TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO comment here and below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gah sorry I swear I'm not forgetting these intentionally, despite this being present in every PR I've sent so far...

@alexcrichton alexcrichton merged commit 39db35a into bytecodealliance:main May 9, 2022
@alexcrichton alexcrichton deleted the union-type branch May 9, 2022 14:28
willemneal pushed a commit to AhaLabs/wit-bindgen that referenced this pull request May 31, 2022
* Split out a `Union` type from `Variant`

This commit splits out the union specialization from `variant`,
finalizing the transition to the new AST of types available in the
current component model draft. This is mostly like the prior
splittings-out where there's some duplication but it's relatively
localized and hopefully not too hard to follow.

* Fill out TODO
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