Debian Codegraph @

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

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