Debian Codegraph @

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

raw
1 (component
2 (component $C1 (;0;)
3 (import "X" (type $X (;0;) (sub resource)))
4 (type (;1;) (own $X))
5 (type (;2;) (func (result 1)))
6 (import "f" (func $f (;0;) (type 2)))
7 (export (;1;) "g" (func $f))
8 )
9 (component $C2 (;1;)
10 (type (;0;)
11 (component
12 (import "X" (type (;0;) (sub resource)))
13 (type (;1;) (own 0))
14 (type (;2;) (func (result 1)))
15 (import "f" (func (;0;) (type 2)))
16 (type (;3;) (own 0))
17 (type (;4;) (func (result 3)))
18 (export (;1;) "g" (func (type 4)))
19 )
20 )
21 (import "C1" (component (;0;) (type 0)))
22 )
23 (instance $c (;0;) (instantiate $C2
24 (with "C1" (component $C1))
25 )
26 )
27 )