Debian Codegraph @

crates/wit-component/tests/components/multi-package/foo/bar/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (record (field "a" u8)))
5 (export (;1;) "x" (type (eq 0)))
6 (type (;2;) (func (param "x" string)))
7 (export (;0;) "bar1" (func (type 2)))
8 (type (;3;) (func (param "x" 1)))
9 (export (;1;) "bar2" (func (type 3)))
10 )
11 )
12 (import "bar" (instance (;0;) (type 0)))
13 (core module (;0;)
14 (type (;0;) (func (param i32 i32)))
15 (type (;1;) (func (param i32)))
16 (type (;2;) (func (param i32 i32 i32 i32) (result i32)))
17 (import "bar" "bar1" (func (;0;) (type 0)))
18 (import "bar" "bar2" (func (;1;) (type 1)))
19 (func (;2;) (type 2) (param i32 i32 i32 i32) (result i32)
20 unreachable
21 )
22 (memory (;0;) 1)
23 (export "memory" (memory 0))
24 (export "cabi_realloc" (func 2))
25 (@producers
26 (processed-by "wit-component" "$CARGO_PKG_VERSION")
27 (processed-by "my-fake-bindgen" "123.45")
28 )
29 )
30 (core module (;1;)
31 (type (;0;) (func (param i32 i32)))
32 (func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32)
33 local.get 0
34 local.get 1
35 i32.const 0
36 call_indirect (type 0)
37 )
38 (table (;0;) 1 1 funcref)
39 (export "0" (func $indirect-bar-bar1))
40 (export "$imports" (table 0))
41 (@producers
42 (processed-by "wit-component" "$CARGO_PKG_VERSION")
43 )
44 )
45 (core module (;2;)
46 (type (;0;) (func (param i32 i32)))
47 (import "" "0" (func (;0;) (type 0)))
48 (import "" "$imports" (table (;0;) 1 1 funcref))
49 (elem (;0;) (i32.const 0) func 0)
50 (@producers
51 (processed-by "wit-component" "$CARGO_PKG_VERSION")
52 )
53 )
54 (core instance (;0;) (instantiate 1))
55 (alias core export 0 "0" (core func (;0;)))
56 (alias export 0 "bar2" (func (;0;)))
57 (core func (;1;) (canon lower (func 0)))
58 (core instance (;1;)
59 (export "bar1" (func 0))
60 (export "bar2" (func 1))
61 )
62 (core instance (;2;) (instantiate 0
63 (with "bar" (instance 1))
64 )
65 )
66 (alias core export 2 "memory" (core memory (;0;)))
67 (alias core export 2 "cabi_realloc" (core func (;2;)))
68 (alias core export 0 "$imports" (core table (;0;)))
69 (alias export 0 "bar1" (func (;1;)))
70 (core func (;3;) (canon lower (func 1) (memory 0) string-encoding=utf8))
71 (core instance (;3;)
72 (export "$imports" (table 0))
73 (export "0" (func 3))
74 )
75 (core instance (;4;) (instantiate 2
76 (with "" (instance 3))
77 )
78 )
79 (@producers
80 (processed-by "wit-component" "$CARGO_PKG_VERSION")
81 )
82 )