Browse Source
* Fix export translation for components. Exports in the component model cause a new index to be added to the index space of the item being exported. This commit updates component translation so that translation of component export sections properly updates internal lists representing those index spaces. * Code review feedback.pull/6114/head
Peter Huene
2 years ago
committed by
GitHub
2 changed files with 54 additions and 2 deletions
@ -0,0 +1,29 @@ |
|||||
|
(component |
||||
|
(component |
||||
|
(component |
||||
|
(component) |
||||
|
(instance (instantiate 0)) |
||||
|
(export "a" (instance 0)) |
||||
|
) |
||||
|
(instance (instantiate 0)) |
||||
|
(export "a" (instance 0)) |
||||
|
) |
||||
|
|
||||
|
(instance (instantiate 0)) ;; instance 0 |
||||
|
(alias export 0 "a" (instance)) ;; instance 1 |
||||
|
(export "a" (instance 1)) ;; instance 2 |
||||
|
(alias export 2 "a" (instance)) ;; instance 3 |
||||
|
(export "inner-a" (instance 3)) ;; instance 4 |
||||
|
) |
||||
|
|
||||
|
(component |
||||
|
(component |
||||
|
(core module) |
||||
|
(export "a" (core module 0)) |
||||
|
) |
||||
|
|
||||
|
(instance (instantiate 0)) |
||||
|
(alias export 0 "a" (core module)) ;; module 0 |
||||
|
(export "a" (core module 0)) ;; module 1 |
||||
|
(core instance (instantiate 1)) |
||||
|
) |
Loading…
Reference in new issue