Debian Codegraph @

crates/wit-component/tests/components/import-resource-in-interface/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (export (;0;) "a" (type (sub resource)))
5 (type (;1;) (own 0))
6 (type (;2;) (func (result 1)))
7 (export (;0;) "[constructor]a" (func (type 2)))
8 (export (;1;) "[static]a.other-new" (func (type 2)))
9 )
10 )
11 (import "foo" (instance (;0;) (type 0)))
12 (core module (;0;)
13 (type (;0;) (func (result i32)))
14 (type (;1;) (func (param i32)))
15 (import "foo" "[constructor]a" (func (;0;) (type 0)))
16 (import "foo" "[static]a.other-new" (func (;1;) (type 0)))
17 (import "foo" "[resource-drop]a" (func (;2;) (type 1)))
18 (@producers
19 (processed-by "wit-component" "$CARGO_PKG_VERSION")
20 (processed-by "my-fake-bindgen" "123.45")
21 )
22 )
23 (alias export 0 "[constructor]a" (func (;0;)))
24 (core func (;0;) (canon lower (func 0)))
25 (alias export 0 "[static]a.other-new" (func (;1;)))
26 (core func (;1;) (canon lower (func 1)))
27 (alias export 0 "a" (type (;1;)))
28 (core func (;2;) (canon resource.drop 1))
29 (core instance (;0;)
30 (export "[constructor]a" (func 0))
31 (export "[static]a.other-new" (func 1))
32 (export "[resource-drop]a" (func 2))
33 )
34 (core instance (;1;) (instantiate 0
35 (with "foo" (instance 0))
36 )
37 )
38 (@producers
39 (processed-by "wit-component" "$CARGO_PKG_VERSION")
40 )
41 )