Debian Codegraph @

crates/wit-parser/tests/ui/feature-gates.wit.json

raw
1 {
2 "worlds": [
3 {
4 "name": "ungated-world",
5 "imports": {
6 "interface-4": {
7 "interface": {
8 "id": 4,
9 "stability": {
10 "unstable": {
11 "feature": "active"
12 }
13 }
14 }
15 }
16 },
17 "exports": {
18 "interface-4": {
19 "interface": {
20 "id": 4,
21 "stability": {
22 "unstable": {
23 "feature": "active"
24 }
25 }
26 }
27 }
28 },
29 "package": 0,
30 "stability": {
31 "unstable": {
32 "feature": "active"
33 }
34 }
35 },
36 {
37 "name": "mixed-world",
38 "imports": {
39 "interface-4": {
40 "interface": {
41 "id": 4,
42 "stability": {
43 "unstable": {
44 "feature": "active"
45 }
46 }
47 }
48 }
49 },
50 "exports": {
51 "interface-4": {
52 "interface": {
53 "id": 4,
54 "stability": {
55 "unstable": {
56 "feature": "active"
57 }
58 }
59 }
60 }
61 },
62 "package": 0
63 }
64 ],
65 "interfaces": [
66 {
67 "name": "ungated",
68 "types": {},
69 "functions": {
70 "ungated": {
71 "name": "ungated",
72 "kind": "freestanding",
73 "params": [],
74 "stability": {
75 "unstable": {
76 "feature": "active"
77 }
78 }
79 }
80 },
81 "stability": {
82 "unstable": {
83 "feature": "active"
84 }
85 },
86 "package": 0
87 },
88 {
89 "name": "ungated2",
90 "types": {
91 "ungated": 0,
92 "ungated2": 1
93 },
94 "functions": {},
95 "stability": {
96 "unstable": {
97 "feature": "active"
98 }
99 },
100 "package": 0
101 },
102 {
103 "name": "ungated-use-target",
104 "types": {
105 "t": 2
106 },
107 "functions": {},
108 "stability": {
109 "unstable": {
110 "feature": "active"
111 }
112 },
113 "package": 0
114 },
115 {
116 "name": "ungated-use",
117 "types": {
118 "t": 3
119 },
120 "functions": {},
121 "stability": {
122 "unstable": {
123 "feature": "active"
124 }
125 },
126 "package": 0
127 },
128 {
129 "name": "ungated-for-world",
130 "types": {},
131 "functions": {},
132 "stability": {
133 "unstable": {
134 "feature": "active"
135 }
136 },
137 "package": 0
138 },
139 {
140 "name": "with-resources",
141 "types": {
142 "ungated": 4
143 },
144 "functions": {
145 "[constructor]ungated": {
146 "name": "[constructor]ungated",
147 "kind": {
148 "constructor": 4
149 },
150 "params": [],
151 "result": 6,
152 "stability": {
153 "unstable": {
154 "feature": "active"
155 }
156 }
157 },
158 "[static]ungated.x": {
159 "name": "[static]ungated.x",
160 "kind": {
161 "static": 4
162 },
163 "params": [],
164 "stability": {
165 "unstable": {
166 "feature": "active"
167 }
168 }
169 },
170 "[method]ungated.y": {
171 "name": "[method]ungated.y",
172 "kind": {
173 "method": 4
174 },
175 "params": [
176 {
177 "name": "self",
178 "type": 5
179 }
180 ],
181 "stability": {
182 "unstable": {
183 "feature": "active"
184 }
185 }
186 }
187 },
188 "package": 0
189 }
190 ],
191 "types": [
192 {
193 "name": "ungated",
194 "kind": {
195 "type": "u32"
196 },
197 "owner": {
198 "interface": 1
199 },
200 "stability": {
201 "unstable": {
202 "feature": "active"
203 }
204 }
205 },
206 {
207 "name": "ungated2",
208 "kind": {
209 "type": 0
210 },
211 "owner": {
212 "interface": 1
213 },
214 "stability": {
215 "unstable": {
216 "feature": "active"
217 }
218 }
219 },
220 {
221 "name": "t",
222 "kind": {
223 "type": "u32"
224 },
225 "owner": {
226 "interface": 2
227 },
228 "stability": {
229 "unstable": {
230 "feature": "active"
231 }
232 }
233 },
234 {
235 "name": "t",
236 "kind": {
237 "type": 2
238 },
239 "owner": {
240 "interface": 3
241 },
242 "stability": {
243 "unstable": {
244 "feature": "active"
245 }
246 }
247 },
248 {
249 "name": "ungated",
250 "kind": "resource",
251 "owner": {
252 "interface": 5
253 },
254 "stability": {
255 "unstable": {
256 "feature": "active"
257 }
258 }
259 },
260 {
261 "name": null,
262 "kind": {
263 "handle": {
264 "borrow": 4
265 }
266 },
267 "owner": null,
268 "stability": {
269 "unstable": {
270 "feature": "active"
271 }
272 }
273 },
274 {
275 "name": null,
276 "kind": {
277 "handle": {
278 "own": 4
279 }
280 },
281 "owner": null
282 }
283 ],
284 "packages": [
285 {
286 "name": "a:b",
287 "interfaces": {
288 "ungated": 0,
289 "ungated2": 1,
290 "ungated-use-target": 2,
291 "ungated-use": 3,
292 "ungated-for-world": 4,
293 "with-resources": 5
294 },
295 "worlds": {
296 "ungated-world": 0,
297 "mixed-world": 1
298 }
299 }
300 ]
301 }