Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/16/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
16 "name": "Foo"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":10,"end":50,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":50,"index":50}},
22 "body": [
23 {
24 "type": "ClassMethod",
25 "start":12,"end":48,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":48,"index":48}},
26 "static": false,
27 "key": {
28 "type": "Identifier",
29 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
30 "name": "bar"
31 },
32 "computed": false,
33 "kind": "method",
34 "id": null,
35 "generator": false,
36 "async": true,
37 "params": [
38 {
39 "type": "Identifier",
40 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"promise"},
41 "name": "promise"
42 }
43 ],
44 "body": {
45 "type": "BlockStatement",
46 "start":31,"end":48,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":48,"index":48}},
47 "body": [
48 {
49 "type": "ExpressionStatement",
50 "start":33,"end":46,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":46,"index":46}},
51 "expression": {
52 "type": "AwaitExpression",
53 "start":33,"end":46,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":46,"index":46}},
54 "argument": {
55 "type": "Identifier",
56 "start":39,"end":46,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":46,"index":46},"identifierName":"promise"},
57 "name": "promise"
58 }
59 }
60 }
61 ],
62 "directives": []
63 }
64 }
65 ]
66 }
67 }
68 ],
69 "directives": []
70 }
71 }