Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/migrated_0008/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 "program": {
5 "type": "Program",
6 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [
20 {
21 "type": "AssignmentPattern",
22 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
23 "left": {
24 "type": "Identifier",
25 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"x"},
26 "name": "x"
27 },
28 "right": {
29 "type": "NumericLiteral",
30 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4}},
31 "extra": {
32 "rawValue": 1,
33 "raw": "1"
34 },
35 "value": 1
36 }
37 }
38 ],
39 "body": {
40 "type": "BinaryExpression",
41 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
42 "left": {
43 "type": "Identifier",
44 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
45 "name": "x"
46 },
47 "operator": "*",
48 "right": {
49 "type": "Identifier",
50 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"x"},
51 "name": "x"
52 }
53 }
54 }
55 }
56 ],
57 "directives": []
58 }
59 }