mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
113 lines
4.7 KiB
JSON
113 lines
4.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":44}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":44}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":44}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":17,"index":44}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start":7,"end":44,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":3,"column":17,"index":44}},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start":7,"end":26,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":2,"column":17,"index":26}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":14,"end":26,"loc":{"start":{"line":2,"column":5,"index":14},"end":{"line":2,"column":17,"index":26}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":15,"end":16,"loc":{"start":{"line":2,"column":6,"index":15},"end":{"line":2,"column":7,"index":16},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start":21,"end":26,"loc":{"start":{"line":2,"column":12,"index":21},"end":{"line":2,"column":17,"index":26}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":21,"end":22,"loc":{"start":{"line":2,"column":12,"index":21},"end":{"line":2,"column":13,"index":22},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":25,"end":26,"loc":{"start":{"line":2,"column":16,"index":25},"end":{"line":2,"column":17,"index":26}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":32,"end":44,"loc":{"start":{"line":3,"column":5,"index":32},"end":{"line":3,"column":17,"index":44}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":33,"end":34,"loc":{"start":{"line":3,"column":6,"index":33},"end":{"line":3,"column":7,"index":34},"identifierName":"z"},
|
|
"name": "z"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start":39,"end":44,"loc":{"start":{"line":3,"column":12,"index":39},"end":{"line":3,"column":17,"index":44}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":39,"end":40,"loc":{"start":{"line":3,"column":12,"index":39},"end":{"line":3,"column":13,"index":40},"identifierName":"z"},
|
|
"name": "z"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":43,"end":44,"loc":{"start":{"line":3,"column":16,"index":43},"end":{"line":3,"column":17,"index":44}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|