Skip to content

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.

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 theahaco/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