mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
64 lines
2.6 KiB
JSON
64 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":52,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":52,"index":52}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "FunctionExpression",
|
|
"start":10,"end":52,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":52,"index":52}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":25,"end":32,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":32,"index":32},"identifierName":"promise"},
|
|
"name": "promise"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":34,"end":52,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":52,"index":52}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":36,"end":50,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":50,"index":50}},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start":36,"end":49,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":49,"index":49}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":42,"end":49,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":49,"index":49},"identifierName":"promise"},
|
|
"name": "promise"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|