Debian Codegraph @

crates/wit-component/tests/components/tricky-resources2/component.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func (result i32)))
4 (export "anon#foo" (func 0))
5 (func (;0;) (type 0) (result i32)
6 unreachable
7 )
8 (@producers
9 (processed-by "wit-component" "$CARGO_PKG_VERSION")
10 (processed-by "my-fake-bindgen" "123.45")
11 )
12 )
13 (type (;0;) (resource (rep i32)))
14 (core instance (;0;) (instantiate 0))
15 (component (;0;)
16 (import "import-type-r" (type (;0;) (sub resource)))
17 (export (;1;) "r" (type 0))
18 )
19 (instance (;0;) (instantiate 0
20 (with "import-type-r" (type 0))
21 )
22 )
23 (export (;1;) "foo:bar/a" (instance 0))
24 (type (;1;) (own 0))
25 (type (;2;) (func (result 1)))
26 (alias core export 0 "anon#foo" (core func (;0;)))
27 (func (;0;) (type 2) (canon lift (core func 0)))
28 (alias export 1 "r" (type (;3;)))
29 (component (;1;)
30 (import "import-type-r" (type (;0;) (sub resource)))
31 (import "import-type-r0" (type (;1;) (eq 0)))
32 (type (;2;) (own 1))
33 (type (;3;) (func (result 2)))
34 (import "import-func-foo" (func (;0;) (type 3)))
35 (export (;4;) "r" (type 0))
36 (type (;5;) (own 4))
37 (type (;6;) (func (result 5)))
38 (export (;1;) "foo" (func 0) (func (type 6)))
39 )
40 (instance (;2;) (instantiate 1
41 (with "import-func-foo" (func 0))
42 (with "import-type-r" (type 3))
43 (with "import-type-r0" (type 0))
44 )
45 )
46 (export (;3;) "anon" (instance 2))
47 (@producers
48 (processed-by "wit-component" "$CARGO_PKG_VERSION")
49 )
50 )