Debian Codegraph @

crates/wit-parser/tests/ui/shared-types.wit.json

raw
1 {
2 "worlds": [
3 {
4 "name": "foo",
5 "imports": {
6 "foo": {
7 "interface": {
8 "id": 0
9 }
10 }
11 },
12 "exports": {
13 "bar": {
14 "interface": {
15 "id": 1
16 }
17 }
18 },
19 "package": 0
20 }
21 ],
22 "interfaces": [
23 {
24 "name": null,
25 "types": {},
26 "functions": {
27 "a": {
28 "name": "a",
29 "kind": "freestanding",
30 "params": [],
31 "result": 0
32 }
33 },
34 "package": 0
35 },
36 {
37 "name": null,
38 "types": {},
39 "functions": {
40 "a": {
41 "name": "a",
42 "kind": "freestanding",
43 "params": [],
44 "result": 1
45 }
46 },
47 "package": 0
48 }
49 ],
50 "types": [
51 {
52 "name": null,
53 "kind": {
54 "list": "u8"
55 },
56 "owner": null
57 },
58 {
59 "name": null,
60 "kind": {
61 "tuple": {
62 "types": [
63 0
64 ]
65 }
66 },
67 "owner": null
68 }
69 ],
70 "packages": [
71 {
72 "name": "foo:shared-items",
73 "interfaces": {},
74 "worlds": {
75 "foo": 0
76 }
77 }
78 ]
79 }