Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
4 "errors": [
5 "SyntaxError: 'await*' has been removed from the async functions proposal. Use Promise.all() instead. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":40}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"bar"},
19 "name": "bar"
20 },
21 "generator": false,
22 "async": true,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":21,"end":40,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":3,"column":1,"index":40}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":25,"end":38,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":2,"column":15,"index":38}},
31 "expression": {
32 "type": "AwaitExpression",
33 "start":25,"end":37,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":2,"column":14,"index":37}},
34 "argument": {
35 "type": "CallExpression",
36 "start":32,"end":37,"loc":{"start":{"line":2,"column":9,"index":32},"end":{"line":2,"column":14,"index":37}},
37 "callee": {
38 "type": "Identifier",
39 "start":32,"end":35,"loc":{"start":{"line":2,"column":9,"index":32},"end":{"line":2,"column":12,"index":35},"identifierName":"foo"},
40 "name": "foo"
41 },
42 "arguments": []
43 }
44 }
45 }
46 ],
47 "directives": []
48 }
49 }
50 ],
51 "directives": []
52 }
53 }