Debian Codegraph @

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

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