Debian Codegraph @

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

raw
1 (component
2 (component $C1 (;0;)
3 (type $X' (;0;) (resource (rep i32)))
4 (export $X (;1;) "X" (type $X'))
5 (core func $f (;0;) (canon resource.drop $X))
6 (type (;2;) (own $X))
7 (type (;3;) (func (param "X" 2)))
8 (func (;0;) (type 3) (canon lift (core func $f)))
9 (export (;1;) "f" (func 0))
10 )
11 (instance $c1 (;0;) (instantiate $C1))
12 (component $C2 (;1;)
13 (import "X" (type $X (;0;) (sub resource)))
14 (type (;1;) (own $X))
15 (type (;2;) (func (param "X" 1)))
16 (import "f" (func (;0;) (type 2)))
17 )
18 (alias export $c1 "X" (type (;0;)))
19 (alias export $c1 "f" (func (;0;)))
20 (instance $c2 (;1;) (instantiate $C2
21 (with "X" (type 0))
22 (with "f" (func 0))
23 )
24 )
25 )