Debian Codegraph @

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

raw
1 (component
2 (type $t (;0;) (resource (rep i32)))
3 (component $c (;0;)
4 (import "x" (type $t (;0;) (sub resource)))
5 (export (;1;) "y" (type $t))
6 )
7 (instance $c1 (;0;) (instantiate $c
8 (with "x" (type $t))
9 )
10 )
11 (instance $c2 (;1;) (instantiate $c
12 (with "x" (type $t))
13 )
14 )
15 (component $c2 (;1;)
16 (import "x1" (type $t (;0;) (sub resource)))
17 (import "x2" (type (;1;) (eq $t)))
18 (import "x3" (type (;2;) (eq $t)))
19 )
20 (alias export $c1 "y" (type (;1;)))
21 (alias export $c2 "y" (type (;2;)))
22 (instance (;2;) (instantiate $c2
23 (with "x1" (type $t))
24 (with "x2" (type 1))
25 (with "x3" (type 2))
26 )
27 )
28 )