Debian Codegraph @

crates/wasm-compose/tests/compositions/merged-resource-import/composed.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (export (;0;) "b" (type (sub resource)))
5 (type (;1;) (own 0))
6 (type (;2;) (func (param "y" u32) (result 1)))
7 (export (;0;) "[constructor]b" (func (type 2)))
8 (export (;3;) "a" (type (sub resource)))
9 )
10 )
11 (import "a" (instance (;0;) (type 0)))
12 (component (;0;)
13 (type (;0;)
14 (instance
15 (export (;0;) "b" (type (sub resource)))
16 (type (;1;) (own 0))
17 (type (;2;) (func (param "y" u32) (result 1)))
18 (export (;0;) "[constructor]b" (func (type 2)))
19 )
20 )
21 (import "a" (instance (;0;) (type 0)))
22 (type (;1;)
23 (instance)
24 )
25 (import "b" (instance (;1;) (type 1)))
26 )
27 (component (;1;)
28 (type (;0;)
29 (instance
30 (export (;0;) "a" (type (sub resource)))
31 (export (;1;) "b" (type (sub resource)))
32 (type (;2;) (own 1))
33 (type (;3;) (func (param "y" u32) (result 2)))
34 (export (;0;) "[constructor]b" (func (type 3)))
35 )
36 )
37 (import "a" (instance (;0;) (type 0)))
38 )
39 (instance (;1;) (instantiate 1
40 (with "a" (instance 0))
41 )
42 )
43 (instance (;2;) (instantiate 0
44 (with "b" (instance 1))
45 (with "a" (instance 0))
46 )
47 )
48 )