Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0066/output.json

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