Debian Codegraph @

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

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