Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:5)",
6 "SyntaxError: Invalid left-hand side in for-in statement. (1:5)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ForInStatement",
16 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
17 "left": {
18 "type": "BinaryExpression",
19 "start":5,"end":10,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":10,"index":10}},
20 "left": {
21 "type": "NumericLiteral",
22 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
23 "extra": {
24 "rawValue": 1,
25 "raw": "1"
26 },
27 "value": 1
28 },
29 "operator": "+",
30 "right": {
31 "type": "NumericLiteral",
32 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
33 "extra": {
34 "rawValue": 1,
35 "raw": "1"
36 },
37 "value": 1
38 },
39 "extra": {
40 "parenthesized": true,
41 "parenStart": 4
42 }
43 },
44 "right": {
45 "type": "Identifier",
46 "start":15,"end":19,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":19,"index":19},"identifierName":"list"},
47 "name": "list"
48 },
49 "body": {
50 "type": "ExpressionStatement",
51 "start":21,"end":32,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":32,"index":32}},
52 "expression": {
53 "type": "CallExpression",
54 "start":21,"end":31,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":31,"index":31}},
55 "callee": {
56 "type": "Identifier",
57 "start":21,"end":28,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":28,"index":28},"identifierName":"process"},
58 "name": "process"
59 },
60 "arguments": [
61 {
62 "type": "Identifier",
63 "start":29,"end":30,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":30,"index":30},"identifierName":"x"},
64 "name": "x"
65 }
66 ]
67 }
68 }
69 }
70 ],
71 "directives": []
72 }
73 }