Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/multiple-await-in-async-arrow-params/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
4 "errors": [
5 "SyntaxError: Can not use 'await' as identifier inside an async function. (1:15)",
6 "SyntaxError: Can not use 'await' as identifier inside an async function. (1:30)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
17 "expression": {
18 "type": "ArrowFunctionExpression",
19 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
20 "id": null,
21 "generator": false,
22 "async": true,
23 "params": [
24 {
25 "type": "ObjectPattern",
26 "start":7,"end":39,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":39,"index":39}},
27 "properties": [
28 {
29 "type": "ObjectProperty",
30 "start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
31 "method": false,
32 "key": {
33 "type": "Identifier",
34 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
35 "name": "x"
36 },
37 "computed": false,
38 "shorthand": true,
39 "value": {
40 "type": "AssignmentPattern",
41 "start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
42 "left": {
43 "type": "Identifier",
44 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
45 "name": "x"
46 },
47 "right": {
48 "type": "ArrayExpression",
49 "start":13,"end":22,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":22,"index":22}},
50 "elements": [
51 {
52 "type": "Identifier",
53 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20},"identifierName":"await"},
54 "name": "await"
55 }
56 ]
57 }
58 },
59 "extra": {
60 "shorthand": true
61 }
62 },
63 {
64 "type": "ObjectProperty",
65 "start":24,"end":37,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":37,"index":37}},
66 "method": false,
67 "key": {
68 "type": "Identifier",
69 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"y"},
70 "name": "y"
71 },
72 "computed": false,
73 "shorthand": true,
74 "value": {
75 "type": "AssignmentPattern",
76 "start":24,"end":37,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":37,"index":37}},
77 "left": {
78 "type": "Identifier",
79 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"y"},
80 "name": "y"
81 },
82 "right": {
83 "type": "ObjectExpression",
84 "start":28,"end":37,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":37,"index":37}},
85 "properties": [
86 {
87 "type": "ObjectProperty",
88 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
89 "method": false,
90 "key": {
91 "type": "Identifier",
92 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35},"identifierName":"await"},
93 "name": "await"
94 },
95 "computed": false,
96 "shorthand": true,
97 "value": {
98 "type": "Identifier",
99 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35},"identifierName":"await"},
100 "name": "await"
101 },
102 "extra": {
103 "shorthand": true
104 }
105 }
106 ]
107 }
108 },
109 "extra": {
110 "shorthand": true
111 }
112 }
113 ]
114 }
115 ],
116 "body": {
117 "type": "BlockStatement",
118 "start":44,"end":46,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":46,"index":46}},
119 "body": [],
120 "directives": []
121 }
122 }
123 }
124 ],
125 "directives": []
126 }
127 }