|
16 | 16 | ) |
17 | 17 | ) |
18 | 18 | (import "foo:bar/qux" (instance (;1;) (type 2))) |
19 | | - (component (;0;) |
20 | | - (type (;0;) |
21 | | - (instance |
22 | | - (export (;0;) "x" (type (sub resource))) |
| 19 | + (type (;3;) |
| 20 | + (component |
| 21 | + (type (;0;) |
| 22 | + (instance |
| 23 | + (export (;0;) "x" (type (sub resource))) |
| 24 | + ) |
23 | 25 | ) |
24 | | - ) |
25 | | - (import "foo:bar/baz" (instance (;0;) (type 0))) |
26 | | - (alias export 0 "x" (type (;1;))) |
27 | | - (type (;2;) |
28 | | - (instance |
29 | | - (alias outer 1 1 (type (;0;))) |
30 | | - (export (;1;) "x" (type (eq 0))) |
31 | | - (type (;2;) (own 1)) |
32 | | - (type (;3;) (func (result 2))) |
33 | | - (export (;0;) "f" (func (type 3))) |
34 | | - ) |
35 | | - ) |
36 | | - (import "foo:bar/qux" (instance (;1;) (type 2))) |
37 | | - (core module (;0;) |
38 | | - (type (;0;) (func (param i32))) |
39 | | - (type (;1;) (func (result i32))) |
40 | | - (type (;2;) (func (param i32 i32 i32 i32) (result i32))) |
41 | | - (import "foo:bar/baz" "[resource-drop]x" (func (;0;) (type 0))) |
42 | | - (import "foo:bar/qux" "f" (func (;1;) (type 1))) |
43 | | - (func (;2;) (type 1) (result i32) |
44 | | - unreachable |
45 | | - ) |
46 | | - (func (;3;) (type 2) (param i32 i32 i32 i32) (result i32) |
47 | | - unreachable |
48 | | - ) |
49 | | - (memory (;0;) 0) |
50 | | - (export "foo:bar/qux#f" (func 2)) |
51 | | - (export "memory" (memory 0)) |
52 | | - (export "cabi_realloc" (func 3)) |
53 | | - (@producers |
54 | | - (processed-by "wit-component" "0.202.0") |
55 | | - ) |
56 | | - ) |
57 | | - (alias export 0 "x" (type (;3;))) |
58 | | - (core func (;0;) (canon resource.drop 3)) |
59 | | - (core instance (;0;) |
60 | | - (export "[resource-drop]x" (func 0)) |
61 | | - ) |
62 | | - (alias export 1 "f" (func (;0;))) |
63 | | - (core func (;1;) (canon lower (func 0))) |
64 | | - (core instance (;1;) |
65 | | - (export "f" (func 1)) |
66 | | - ) |
67 | | - (core instance (;2;) (instantiate 0 |
68 | | - (with "foo:bar/baz" (instance 0)) |
69 | | - (with "foo:bar/qux" (instance 1)) |
| 26 | + (import "foo:bar/baz" (instance (;0;) (type 0))) |
| 27 | + (alias export 0 "x" (type (;1;))) |
| 28 | + (type (;2;) |
| 29 | + (instance |
| 30 | + (alias outer 1 1 (type (;0;))) |
| 31 | + (export (;1;) "x" (type (eq 0))) |
| 32 | + (type (;2;) (own 1)) |
| 33 | + (type (;3;) (func (result 2))) |
| 34 | + (export (;0;) "f" (func (type 3))) |
| 35 | + ) |
70 | 36 | ) |
71 | | - ) |
72 | | - (alias core export 2 "memory" (core memory (;0;))) |
73 | | - (alias core export 2 "cabi_realloc" (core func (;2;))) |
74 | | - (alias export 0 "x" (type (;4;))) |
75 | | - (type (;5;) (own 4)) |
76 | | - (type (;6;) (func (result 5))) |
77 | | - (alias core export 2 "foo:bar/qux#f" (core func (;3;))) |
78 | | - (func (;1;) (type 6) (canon lift (core func 3))) |
79 | | - (alias export 0 "x" (type (;7;))) |
80 | | - (component (;0;) |
81 | | - (import "import-type-x" (type (;0;) (sub resource))) |
82 | | - (import "import-type-x0" (type (;1;) (eq 0))) |
83 | | - (type (;2;) (own 1)) |
84 | | - (type (;3;) (func (result 2))) |
85 | | - (import "import-func-f" (func (;0;) (type 3))) |
86 | | - (export (;4;) "x" (type 0)) |
87 | | - (type (;5;) (own 4)) |
88 | | - (type (;6;) (func (result 5))) |
89 | | - (export (;1;) "f" (func 0) (func (type 6))) |
90 | | - ) |
91 | | - (instance (;2;) (instantiate 0 |
92 | | - (with "import-func-f" (func 1)) |
93 | | - (with "import-type-x" (type 7)) |
94 | | - (with "import-type-x0" (type 4)) |
| 37 | + (import "foo:bar/qux" (instance (;1;) (type 2))) |
| 38 | + (alias export 0 "x" (type (;3;))) |
| 39 | + (type (;4;) |
| 40 | + (instance |
| 41 | + (alias outer 1 3 (type (;0;))) |
| 42 | + (export (;1;) "x" (type (eq 0))) |
| 43 | + (type (;2;) (own 1)) |
| 44 | + (type (;3;) (func (result 2))) |
| 45 | + (export (;0;) "f" (func (type 3))) |
| 46 | + ) |
95 | 47 | ) |
96 | | - ) |
97 | | - (export (;3;) "foo:bar/qux" (instance 2)) |
98 | | - (@producers |
99 | | - (processed-by "wit-component" "0.202.0") |
| 48 | + (export (;2;) "foo:bar/qux" (instance (type 4))) |
100 | 49 | ) |
101 | 50 | ) |
| 51 | + (import "unlocked-dep=<test:bar>" (component (;0;) (type 3))) |
102 | 52 | (instance $component2 (;2;) (instantiate 0 |
103 | 53 | (with "foo:bar/baz" (instance 0)) |
104 | 54 | (with "foo:bar/qux" (instance 1)) |
105 | 55 | ) |
106 | 56 | ) |
107 | 57 | (alias export $component2 "foo:bar/qux" (instance $alias (;3;))) |
108 | | - (component (;1;) |
109 | | - (type (;0;) |
110 | | - (instance |
111 | | - (export (;0;) "x" (type (sub resource))) |
| 58 | + (type (;4;) |
| 59 | + (component |
| 60 | + (type (;0;) |
| 61 | + (instance |
| 62 | + (export (;0;) "x" (type (sub resource))) |
| 63 | + ) |
112 | 64 | ) |
113 | | - ) |
114 | | - (import "foo:bar/baz" (instance (;0;) (type 0))) |
115 | | - (alias export 0 "x" (type (;1;))) |
116 | | - (type (;2;) |
117 | | - (instance |
118 | | - (alias outer 1 1 (type (;0;))) |
119 | | - (export (;1;) "x" (type (eq 0))) |
120 | | - (type (;2;) (own 1)) |
121 | | - (type (;3;) (func (result 2))) |
122 | | - (export (;0;) "f" (func (type 3))) |
123 | | - ) |
124 | | - ) |
125 | | - (import "foo:bar/qux" (instance (;1;) (type 2))) |
126 | | - (core module (;0;) |
127 | | - (type (;0;) (func (param i32))) |
128 | | - (type (;1;) (func (result i32))) |
129 | | - (type (;2;) (func (param i32 i32 i32 i32) (result i32))) |
130 | | - (import "foo:bar/baz" "[resource-drop]x" (func (;0;) (type 0))) |
131 | | - (import "foo:bar/qux" "f" (func (;1;) (type 1))) |
132 | | - (func (;2;) (type 1) (result i32) |
133 | | - unreachable |
134 | | - ) |
135 | | - (func (;3;) (type 2) (param i32 i32 i32 i32) (result i32) |
136 | | - unreachable |
137 | | - ) |
138 | | - (memory (;0;) 0) |
139 | | - (export "foo:bar/qux#f" (func 2)) |
140 | | - (export "memory" (memory 0)) |
141 | | - (export "cabi_realloc" (func 3)) |
142 | | - (@producers |
143 | | - (processed-by "wit-component" "0.202.0") |
144 | | - ) |
145 | | - ) |
146 | | - (alias export 0 "x" (type (;3;))) |
147 | | - (core func (;0;) (canon resource.drop 3)) |
148 | | - (core instance (;0;) |
149 | | - (export "[resource-drop]x" (func 0)) |
150 | | - ) |
151 | | - (alias export 1 "f" (func (;0;))) |
152 | | - (core func (;1;) (canon lower (func 0))) |
153 | | - (core instance (;1;) |
154 | | - (export "f" (func 1)) |
155 | | - ) |
156 | | - (core instance (;2;) (instantiate 0 |
157 | | - (with "foo:bar/baz" (instance 0)) |
158 | | - (with "foo:bar/qux" (instance 1)) |
| 65 | + (import "foo:bar/baz" (instance (;0;) (type 0))) |
| 66 | + (alias export 0 "x" (type (;1;))) |
| 67 | + (type (;2;) |
| 68 | + (instance |
| 69 | + (alias outer 1 1 (type (;0;))) |
| 70 | + (export (;1;) "x" (type (eq 0))) |
| 71 | + (type (;2;) (own 1)) |
| 72 | + (type (;3;) (func (result 2))) |
| 73 | + (export (;0;) "f" (func (type 3))) |
| 74 | + ) |
159 | 75 | ) |
160 | | - ) |
161 | | - (alias core export 2 "memory" (core memory (;0;))) |
162 | | - (alias core export 2 "cabi_realloc" (core func (;2;))) |
163 | | - (alias export 0 "x" (type (;4;))) |
164 | | - (type (;5;) (own 4)) |
165 | | - (type (;6;) (func (result 5))) |
166 | | - (alias core export 2 "foo:bar/qux#f" (core func (;3;))) |
167 | | - (func (;1;) (type 6) (canon lift (core func 3))) |
168 | | - (alias export 0 "x" (type (;7;))) |
169 | | - (component (;0;) |
170 | | - (import "import-type-x" (type (;0;) (sub resource))) |
171 | | - (import "import-type-x0" (type (;1;) (eq 0))) |
172 | | - (type (;2;) (own 1)) |
173 | | - (type (;3;) (func (result 2))) |
174 | | - (import "import-func-f" (func (;0;) (type 3))) |
175 | | - (export (;4;) "x" (type 0)) |
176 | | - (type (;5;) (own 4)) |
177 | | - (type (;6;) (func (result 5))) |
178 | | - (export (;1;) "f" (func 0) (func (type 6))) |
179 | | - ) |
180 | | - (instance (;2;) (instantiate 0 |
181 | | - (with "import-func-f" (func 1)) |
182 | | - (with "import-type-x" (type 7)) |
183 | | - (with "import-type-x0" (type 4)) |
| 76 | + (import "foo:bar/qux" (instance (;1;) (type 2))) |
| 77 | + (alias export 0 "x" (type (;3;))) |
| 78 | + (type (;4;) |
| 79 | + (instance |
| 80 | + (alias outer 1 3 (type (;0;))) |
| 81 | + (export (;1;) "x" (type (eq 0))) |
| 82 | + (type (;2;) (own 1)) |
| 83 | + (type (;3;) (func (result 2))) |
| 84 | + (export (;0;) "f" (func (type 3))) |
| 85 | + ) |
184 | 86 | ) |
185 | | - ) |
186 | | - (export (;3;) "foo:bar/qux" (instance 2)) |
187 | | - (@producers |
188 | | - (processed-by "wit-component" "0.202.0") |
| 87 | + (export (;2;) "foo:bar/qux" (instance (type 4))) |
189 | 88 | ) |
190 | 89 | ) |
| 90 | + (import "unlocked-dep=<test:foo>" (component (;1;) (type 4))) |
191 | 91 | (instance $component1 (;4;) (instantiate 1 |
192 | 92 | (with "foo:bar/qux" (instance $alias)) |
193 | 93 | (with "foo:bar/baz" (instance 0)) |
|
0 commit comments