mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
101 lines
4.7 KiB
JSON
101 lines
4.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":54}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":54}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":54}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":53,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":4,"column":1,"index":53}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "DoExpression",
|
|
"start":8,"end":53,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":53}},
|
|
"async": true,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":17,"end":53,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":4,"column":1,"index":53}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":21,"end":35,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":16,"index":35}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":25,"end":34,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":15,"index":34}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":25,"end":28,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":9,"index":28},"identifierName":"tmp"},
|
|
"name": "tmp"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start":31,"end":34,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":15,"index":34}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":31,"end":32,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":13,"index":32},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":38,"end":51,"loc":{"start":{"line":3,"column":2,"index":38},"end":{"line":3,"column":15,"index":51}},
|
|
"expression": {
|
|
"type": "BinaryExpression",
|
|
"start":38,"end":51,"loc":{"start":{"line":3,"column":2,"index":38},"end":{"line":3,"column":15,"index":51}},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start":38,"end":47,"loc":{"start":{"line":3,"column":2,"index":38},"end":{"line":3,"column":11,"index":47}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":38,"end":41,"loc":{"start":{"line":3,"column":2,"index":38},"end":{"line":3,"column":5,"index":41},"identifierName":"tmp"},
|
|
"name": "tmp"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start":44,"end":47,"loc":{"start":{"line":3,"column":8,"index":44},"end":{"line":3,"column":11,"index":47},"identifierName":"tmp"},
|
|
"name": "tmp"
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":50,"end":51,"loc":{"start":{"line":3,"column":14,"index":50},"end":{"line":3,"column":15,"index":51}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|