Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-5/output.json

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