bytecodealliance / componentize-py

Apache License 2.0
158 stars 19 forks source link

Add support for type aliases #26

Open dicej opened 1 year ago

dicej commented 1 year ago

Currently, componentize-py generates no code for type aliases; instead, it just uses the dealiased types directly. Instead, we should generate assignment expressions for each alias and use the alias in all the same places (e.g. function parameter types, etc.) that the original WIT files used them.