mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
81 lines
3.4 KiB
JSON
81 lines
3.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
|
|
"name": "g"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":13,"end":44,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":44,"index":44}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"right": {
|
|
"type": "FunctionExpression",
|
|
"start":17,"end":44,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":44,"index":44}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":28,"end":44,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":44,"index":44}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":30,"end":42,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":42,"index":42}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":30,"end":42,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":42,"index":42}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35},"identifierName":"async"},
|
|
"name": "async"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":36,"end":41,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":41,"index":41},"identifierName":"yield"},
|
|
"name": "yield"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":46,"end":48,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":48,"index":48}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "EmptyStatement",
|
|
"start":48,"end":49,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":49,"index":49}}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|