Debian Codegraph @

crates/wit-component/tests/components/live-exports-dead-imports/component.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func (result i32)))
4 (export "foo:foo/a#[constructor]r" (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 (type (;1;) (own 0))
16 (type (;2;) (func (result 1)))
17 (alias core export 0 "foo:foo/a#[constructor]r" (core func (;0;)))
18 (func (;0;) (type 2) (canon lift (core func 0)))
19 (component (;0;)
20 (import "import-type-r" (type (;0;) (sub resource)))
21 (type (;1;) (own 0))
22 (type (;2;) (func (result 1)))
23 (import "import-constructor-r" (func (;0;) (type 2)))
24 (export (;3;) "r" (type 0))
25 (type (;4;) (own 3))
26 (type (;5;) (func (result 4)))
27 (export (;1;) "[constructor]r" (func 0) (func (type 5)))
28 )
29 (instance (;0;) (instantiate 0
30 (with "import-constructor-r" (func 0))
31 (with "import-type-r" (type 0))
32 )
33 )
34 (export (;1;) "foo:foo/a" (instance 0))
35 (@producers
36 (processed-by "wit-component" "$CARGO_PKG_VERSION")
37 )
38 )