Debian Codegraph @

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

raw
1 (component $P
2 (type (;0;)
3 (component
4 (import "T" (type (;0;) (sub resource)))
5 (type (;1;) (own 0))
6 (type (;2;) (func (param "t" 1)))
7 (export (;0;) "foo" (func (type 2)))
8 )
9 )
10 (import "C1" (component $C1 (;0;) (type 0)))
11 (type (;1;)
12 (component
13 (import "T" (type (;0;) (sub resource)))
14 (type (;1;) (own 0))
15 (type (;2;) (func (param "t" 1)))
16 (import "foo" (func (;0;) (type 2)))
17 )
18 )
19 (import "C2" (component $C2 (;1;) (type 1)))
20 (type $R (;2;) (resource (rep i32)))
21 (instance $c1 (;0;) (instantiate $C1
22 (with "T" (type $R))
23 )
24 )
25 (alias export $c1 "foo" (func (;0;)))
26 (instance $c2 (;1;) (instantiate $C2
27 (with "T" (type $R))
28 (with "foo" (func 0))
29 )
30 )
31 )