Debian Codegraph @

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

raw
1 (component
2 (type $r' (;0;) (resource (rep i32)))
3 (component $C (;0;)
4 (import "x" (type $x (;0;) (sub resource)))
5 (export (;1;) "y" (type $x))
6 )
7 (instance $c' (;0;) (instantiate $C
8 (with "x" (type $r'))
9 )
10 )
11 (export $c (;1;) "c" (instance $c'))
12 (alias export $c "y" (type $r (;1;)))
13 (core func $f (;0;) (canon resource.drop $r))
14 (type (;2;) (own $r))
15 (type (;3;) (func (param "x" 2)))
16 (func (;0;) (type 3) (canon lift (core func $f)))
17 (export (;1;) "f" (func 0))
18 )