Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/destructuring/error-operator-for-default/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
4 "errors": [
5 "SyntaxError: Only '=' operator can be used for specifying default value. (1:3)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":1,"end":13,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":13,"index":13}},
19 "operator": "=",
20 "left": {
21 "type": "ArrayPattern",
22 "start":1,"end":9,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":9,"index":9}},
23 "elements": [
24 {
25 "type": "AssignmentPattern",
26 "start":2,"end":8,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":8,"index":8}},
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": "Identifier",
34 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"a"},
35 "name": "a"
36 }
37 }
38 ]
39 },
40 "right": {
41 "type": "Identifier",
42 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"a"},
43 "name": "a"
44 },
45 "extra": {
46 "parenthesized": true,
47 "parenStart": 0
48 }
49 }
50 }
51 ],
52 "directives": []
53 }
54 }