Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-pattern/output.json

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