Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:1)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":11,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":11,"index":11}},
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": "AssignmentPattern",
22 "start":1,"end":6,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":6,"index":6}},
23 "left": {
24 "type": "Identifier",
25 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"},
26 "name": "a"
27 },
28 "right": {
29 "type": "Literal",
30 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
31 "value": 1,
32 "raw": "1"
33 },
34 "extra": {
35 "parenthesized": true,
36 "parenStart": 0
37 }
38 },
39 "right": {
40 "type": "Identifier",
41 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"t"},
42 "name": "t"
43 }
44 }
45 }
46 ]
47 }
48 }