-
Notifications
You must be signed in to change notification settings - Fork 312
feat(wit): add map type support #2356
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -324,6 +324,9 @@ impl TypeContents { | |||||
| } | ||||||
| TypeDefKind::Enum(_) => Self::empty(), | ||||||
| TypeDefKind::List(t) => Self::for_type(resolve, t) | Self::LIST, | ||||||
| TypeDefKind::Map(k, v) => { | ||||||
| Self::for_type(resolve, k) | Self::for_type(resolve, v) | Self::LIST | ||||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Should this be
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're up for it renaming |
||||||
| } | ||||||
| TypeDefKind::FixedSizeList(t, _elements) => Self::for_type(resolve, t), | ||||||
| TypeDefKind::Type(t) => Self::for_type(resolve, t), | ||||||
| TypeDefKind::Future(_) => Self::empty(), | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this I think it would be best for
Mapto be routed to some sort of "not implemented" error and you can defer the work to someone fleshing out GC support in the future