Debian Codegraph @

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

raw
1 {
2 "worlds": [],
3 "interfaces": [
4 {
5 "name": "foo",
6 "types": {
7 "bar": 0
8 },
9 "functions": {
10 "my-stable": {
11 "name": "my-stable",
12 "kind": "freestanding",
13 "params": [
14 {
15 "name": "p",
16 "type": 0
17 }
18 ],
19 "result": 1
20 }
21 },
22 "package": 0
23 }
24 ],
25 "types": [
26 {
27 "name": "bar",
28 "kind": {
29 "variant": {
30 "cases": [
31 {
32 "name": "x",
33 "type": null
34 },
35 {
36 "name": "y",
37 "type": null
38 }
39 ]
40 }
41 },
42 "owner": {
43 "interface": 0
44 }
45 },
46 {
47 "name": null,
48 "kind": {
49 "result": {
50 "ok": null,
51 "err": 0
52 }
53 },
54 "owner": null
55 }
56 ],
57 "packages": [
58 {
59 "name": "a:b",
60 "interfaces": {
61 "foo": 0
62 },
63 "worlds": {}
64 }
65 ]
66 }