Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/invalid-lhs-02/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
4 "errors": [
5 "SyntaxError: Invalid left-hand side in object destructuring pattern. (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":1,"end":14,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":14,"index":14}},
19 "operator": "=",
20 "left": {
21 "type": "ObjectPattern",
22 "start":1,"end":10,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":10,"index":10}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":2,"end":9,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":9,"index":9}},
27 "method": false,
28 "key": {
29 "type": "Identifier",
30 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "shorthand": false,
35 "value": {
36 "type": "ThisExpression",
37 "start":5,"end":9,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":9,"index":9}}
38 }
39 }
40 ]
41 },
42 "right": {
43 "type": "NumericLiteral",
44 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
45 "extra": {
46 "rawValue": 0,
47 "raw": "0"
48 },
49 "value": 0
50 },
51 "extra": {
52 "parenthesized": true,
53 "parenStart": 0
54 }
55 }
56 }
57 ],
58 "directives": []
59 }
60 }