Debian Codegraph @

crates/wasm-compose/tests/compositions/resources-and-aliases/composed.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (export (;0;) "a" (type (sub resource)))
5 )
6 )
7 (import "host-a" (instance (;0;) (type 0)))
8 (alias export 0 "a" (type (;1;)))
9 (type (;2;)
10 (instance
11 (alias outer 1 1 (type (;0;)))
12 (export (;1;) "b" (type (eq 0)))
13 )
14 )
15 (import "host-b" (instance (;1;) (type 2)))
16 (component (;0;)
17 (type (;0;)
18 (instance
19 (export (;0;) "a" (type (sub resource)))
20 )
21 )
22 (import "host-a" (instance $i (;0;) (type 0)))
23 (alias export $i "a" (type $a (;1;)))
24 (type (;2;)
25 (instance
26 (alias outer 1 $a (type (;0;)))
27 (export (;1;) "b" (type (eq 0)))
28 )
29 )
30 (import "host-b" (instance (;1;) (type 2)))
31 (type (;3;)
32 (instance)
33 )
34 (import "b" (instance (;2;) (type 3)))
35 )
36 (component (;1;))
37 (instance (;2;) (instantiate 1))
38 (instance (;3;) (instantiate 0
39 (with "b" (instance 2))
40 (with "host-a" (instance 0))
41 (with "host-b" (instance 1))
42 )
43 )
44 )