Debian Codegraph @

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

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