Debian Codegraph @

crates/wit-component/tests/components/merge-import-versions/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (export (;0;) "r" (type (sub resource)))
5 (type (;1;) (own 0))
6 (type (;2;) (func (result 1)))
7 (export (;0;) "[constructor]r" (func (type 2)))
8 (type (;3;) (borrow 0))
9 (type (;4;) (func (param "self" 3)))
10 (export (;1;) "[method]r.x" (func (type 4)))
11 (type (;5;) (func (param "x" string)))
12 (export (;2;) "x" (func (type 5)))
13 (export (;3;) "x2" (func (type 5)))
14 (type (;6;) (func))
15 (export (;4;) "y" (func (type 6)))
16 )
17 )
18 (import "a:b/[email protected]" (instance (;0;) (type 0)))
19 (core module (;0;)
20 (type (;0;) (func (result i32)))
21 (type (;1;) (func (param i32)))
22 (type (;2;) (func (param i32 i32)))
23 (type (;3;) (func))
24 (import "a:b/[email protected]" "[constructor]r" (func (;0;) (type 0)))
25 (import "a:b/[email protected]" "[resource-drop]r" (func (;1;) (type 1)))
26 (import "a:b/[email protected]" "x" (func (;2;) (type 2)))
27 (import "a:b/[email protected]" "x2" (func (;3;) (type 2)))
28 (import "a:b/[email protected]" "[constructor]r" (func (;4;) (type 0)))
29 (import "a:b/[email protected]" "[resource-drop]r" (func (;5;) (type 1)))
30 (import "a:b/[email protected]" "[method]r.x" (func (;6;) (type 1)))
31 (import "a:b/[email protected]" "x" (func (;7;) (type 2)))
32 (import "a:b/[email protected]" "x2" (func (;8;) (type 2)))
33 (import "a:b/[email protected]" "y" (func (;9;) (type 3)))
34 (memory (;0;) 1)
35 (export "memory" (memory 0))
36 (@producers
37 (processed-by "wit-component" "$CARGO_PKG_VERSION")
38 (processed-by "my-fake-bindgen" "123.45")
39 )
40 )
41 (core module (;1;)
42 (type (;0;) (func (param i32 i32)))
43 (table (;0;) 2 2 funcref)
44 (export "0" (func $indirect-a:b/[email protected]))
45 (export "1" (func $indirect-a:b/[email protected]))
46 (export "$imports" (table 0))
47 (func $indirect-a:b/[email protected] (;0;) (type 0) (param i32 i32)
48 local.get 0
49 local.get 1
50 i32.const 0
51 call_indirect (type 0)
52 )
53 (func $indirect-a:b/[email protected] (;1;) (type 0) (param i32 i32)
54 local.get 0
55 local.get 1
56 i32.const 1
57 call_indirect (type 0)
58 )
59 (@producers
60 (processed-by "wit-component" "$CARGO_PKG_VERSION")
61 )
62 )
63 (core module (;2;)
64 (type (;0;) (func (param i32 i32)))
65 (import "" "0" (func (;0;) (type 0)))
66 (import "" "1" (func (;1;) (type 0)))
67 (import "" "$imports" (table (;0;) 2 2 funcref))
68 (elem (;0;) (i32.const 0) func 0 1)
69 (@producers
70 (processed-by "wit-component" "$CARGO_PKG_VERSION")
71 )
72 )
73 (core instance (;0;) (instantiate 1))
74 (alias export 0 "[constructor]r" (func (;0;)))
75 (core func (;0;) (canon lower (func 0)))
76 (alias export 0 "r" (type (;1;)))
77 (core func (;1;) (canon resource.drop 1))
78 (alias core export 0 "0" (core func (;2;)))
79 (alias core export 0 "1" (core func (;3;)))
80 (core instance (;1;)
81 (export "[constructor]r" (func 0))
82 (export "[resource-drop]r" (func 1))
83 (export "x" (func 2))
84 (export "x2" (func 3))
85 )
86 (alias export 0 "[constructor]r" (func (;1;)))
87 (core func (;4;) (canon lower (func 1)))
88 (alias export 0 "r" (type (;2;)))
89 (core func (;5;) (canon resource.drop 2))
90 (alias export 0 "[method]r.x" (func (;2;)))
91 (core func (;6;) (canon lower (func 2)))
92 (alias export 0 "y" (func (;3;)))
93 (core func (;7;) (canon lower (func 3)))
94 (core instance (;2;)
95 (export "[constructor]r" (func 4))
96 (export "[resource-drop]r" (func 5))
97 (export "[method]r.x" (func 6))
98 (export "x" (func 2))
99 (export "x2" (func 3))
100 (export "y" (func 7))
101 )
102 (core instance (;3;) (instantiate 0
103 (with "a:b/[email protected]" (instance 1))
104 (with "a:b/[email protected]" (instance 2))
105 )
106 )
107 (alias core export 3 "memory" (core memory (;0;)))
108 (alias core export 0 "$imports" (core table (;0;)))
109 (alias export 0 "x" (func (;4;)))
110 (core func (;8;) (canon lower (func 4) (memory 0) string-encoding=utf8))
111 (alias export 0 "x2" (func (;5;)))
112 (core func (;9;) (canon lower (func 5) (memory 0) string-encoding=utf8))
113 (core instance (;4;)
114 (export "$imports" (table 0))
115 (export "0" (func 8))
116 (export "1" (func 9))
117 )
118 (core instance (;5;) (instantiate 2
119 (with "" (instance 4))
120 )
121 )
122 (@producers
123 (processed-by "wit-component" "$CARGO_PKG_VERSION")
124 )
125 )