Debian Codegraph @

tests/snapshots/cli/component-model/resources.wast/55.print

raw
1 (component
2 (type $r' (;0;) (resource (rep i32)))
3 (component $C (;0;)
4 (import "x" (type $x (;0;) (sub resource)))
5 (export (;1;) "y" (type $x))
6 )
7 (instance $c (;0;) (instantiate $C
8 (with "x" (type $r'))
9 )
10 )
11 (alias export $c "y" (type (;1;)))
12 (instance $i (;1;)
13 (export "x" (type 1))
14 )
15 (component $C2 (;1;)
16 (type (;0;)
17 (instance
18 (type (;0;)
19 (instance
20 (export (;0;) "i2" (type (sub resource)))
21 )
22 )
23 (export (;0;) "i1" (instance (type 0)))
24 )
25 )
26 (import "x" (instance $i (;0;) (type 0)))
27 (alias export $i "i1" (instance (;1;)))
28 (alias export 1 "i2" (type (;1;)))
29 (export (;2;) "y" (type 1))
30 )
31 (alias export $i "x" (type (;2;)))
32 (instance $i2 (;2;)
33 (export "i2" (type 2))
34 )
35 (instance $i1 (;3;)
36 (export "i1" (instance $i2))
37 )
38 (instance $c2 (;4;) (instantiate $C2
39 (with "x" (instance $i1))
40 )
41 )
42 (alias export $c2 "y" (type (;3;)))
43 (export $r (;4;) "x" (type 3))
44 (core func $f (;0;) (canon resource.drop $r))
45 (type (;5;) (own $r))
46 (type (;6;) (func (param "x" 5)))
47 (func (;0;) (type 6) (canon lift (core func $f)))
48 (export (;1;) "f" (func 0))
49 )