Debian Codegraph @

crates/wit-parser/tests/ui/error-context.wit.json

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