Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
4 "errors": [
5 "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:11)",
6 "SyntaxError: 'await' is not allowed in async function parameters. (1:11)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
17 "expression": {
18 "type": "ArrowFunctionExpression",
19 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
20 "id": null,
21 "generator": false,
22 "async": true,
23 "params": [
24 {
25 "type": "AssignmentPattern",
26 "start":7,"end":18,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":18,"index":18}},
27 "left": {
28 "type": "Identifier",
29 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"},
30 "name": "x"
31 },
32 "right": {
33 "type": "AwaitExpression",
34 "start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18}},
35 "argument": {
36 "type": "NumericLiteral",
37 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
38 "extra": {
39 "rawValue": 2,
40 "raw": "2"
41 },
42 "value": 2
43 }
44 }
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
50 "body": [],
51 "directives": []
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }