Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
4 "errors": [
5 "SyntaxError: 'await' is not allowed in async function parameters. (2:7)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
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 "body": {
25 "type": "BlockStatement",
26 "start":20,"end":46,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":3,"column":1,"index":46}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":24,"end":44,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":22,"index":44}},
31 "expression": {
32 "type": "ArrowFunctionExpression",
33 "start":24,"end":43,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":21,"index":43}},
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [
38 {
39 "type": "AssignmentPattern",
40 "start":25,"end":36,"loc":{"start":{"line":2,"column":3,"index":25},"end":{"line":2,"column":14,"index":36}},
41 "left": {
42 "type": "Identifier",
43 "start":25,"end":26,"loc":{"start":{"line":2,"column":3,"index":25},"end":{"line":2,"column":4,"index":26},"identifierName":"x"},
44 "name": "x"
45 },
46 "right": {
47 "type": "AwaitExpression",
48 "start":29,"end":36,"loc":{"start":{"line":2,"column":7,"index":29},"end":{"line":2,"column":14,"index":36}},
49 "argument": {
50 "type": "NumericLiteral",
51 "start":35,"end":36,"loc":{"start":{"line":2,"column":13,"index":35},"end":{"line":2,"column":14,"index":36}},
52 "extra": {
53 "rawValue": 2,
54 "raw": "2"
55 },
56 "value": 2
57 }
58 }
59 }
60 ],
61 "body": {
62 "type": "BlockStatement",
63 "start":41,"end":43,"loc":{"start":{"line":2,"column":19,"index":41},"end":{"line":2,"column":21,"index":43}},
64 "body": [],
65 "directives": []
66 }
67 }
68 }
69 ],
70 "directives": []
71 }
72 }
73 ],
74 "directives": []
75 }
76 }