Debian Codegraph @

crates/wit-parser/tests/ui/world-top-level-funcs.wit.json

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