Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/destructuring/parenthesized-lhs-array/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:1)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
19 "operator": "=",
20 "left": {
21 "type": "ArrayPattern",
22 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
23 "elements": [
24 {
25 "type": "Identifier",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
27 "name": "a"
28 }
29 ],
30 "extra": {
31 "parenthesized": true,
32 "parenStart": 0
33 }
34 },
35 "right": {
36 "type": "NumericLiteral",
37 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
38 "extra": {
39 "rawValue": 2,
40 "raw": "2"
41 },
42 "value": 2
43 }
44 }
45 }
46 ],
47 "directives": []
48 }
49 }