Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/invalid-assignment-pattern-6/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:1)",
6 "SyntaxError: Only '=' operator can be used for specifying default value. (1:2)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
17 "expression": {
18 "type": "AssignmentExpression",
19 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
20 "operator": "=",
21 "left": {
22 "type": "AssignmentPattern",
23 "start":1,"end":7,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":7,"index":7}},
24 "left": {
25 "type": "Identifier",
26 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"},
27 "name": "a"
28 },
29 "right": {
30 "type": "NumericLiteral",
31 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7}},
32 "extra": {
33 "rawValue": 1,
34 "raw": "1"
35 },
36 "value": 1
37 },
38 "extra": {
39 "parenthesized": true,
40 "parenStart": 0
41 }
42 },
43 "right": {
44 "type": "Identifier",
45 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"t"},
46 "name": "t"
47 }
48 }
49 }
50 ],
51 "directives": []
52 }
53 }