Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-rest-array/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:22)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":34,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":34,"index":34}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
23 "name": "foo"
24 },
25 "init": {
26 "type": "ArrowFunctionExpression",
27 "start":10,"end":34,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":34,"index":34}},
28 "id": null,
29 "generator": false,
30 "async": true,
31 "params": [
32 {
33 "type": "ArrayPattern",
34 "start":17,"end":27,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":27,"index":27}},
35 "elements": [
36 {
37 "type": "RestElement",
38 "start":18,"end":26,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":26,"index":26}},
39 "argument": {
40 "type": "Identifier",
41 "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"},
42 "name": "foo",
43 "extra": {
44 "parenthesized": true,
45 "parenStart": 21
46 }
47 }
48 }
49 ]
50 }
51 ],
52 "body": {
53 "type": "BlockStatement",
54 "start":32,"end":34,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":34,"index":34}},
55 "body": [],
56 "directives": []
57 }
58 }
59 }
60 ],
61 "kind": "var"
62 }
63 ],
64 "directives": []
65 }
66 }