Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/invalid-parens-async-func/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "errors": [
5 "SyntaxError: Missing semicolon. (1:7)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
16 "expression": {
17 "type": "Identifier",
18 "start":1,"end":6,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":6,"index":6},"identifierName":"async"},
19 "name": "async",
20 "extra": {
21 "parenthesized": true,
22 "parenStart": 0
23 }
24 }
25 },
26 {
27 "type": "FunctionDeclaration",
28 "start":8,"end":25,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":25,"index":25}},
29 "id": {
30 "type": "Identifier",
31 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"x"},
32 "name": "x"
33 },
34 "generator": false,
35 "async": false,
36 "params": [
37 {
38 "type": "Identifier",
39 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"a"},
40 "name": "a"
41 }
42 ],
43 "body": {
44 "type": "BlockStatement",
45 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
46 "body": [],
47 "directives": []
48 }
49 }
50 ],
51 "directives": []
52 }
53 }