mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
73 lines
3.0 KiB
JSON
73 lines
3.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"errors": [
|
|
"SyntaxError: Can not use 'await' as identifier inside an async function. (1:20)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":7,"end":32,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":32,"index":32}},
|
|
"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"
|
|
},
|
|
"right": {
|
|
"type": "ClassExpression",
|
|
"start":11,"end":32,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":32,"index":32}},
|
|
"id": null,
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":17,"end":32,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":32,"index":32}},
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":19,"end":30,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":30,"index":30}},
|
|
"static": false,
|
|
"computed": true,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":20,"end":25,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":25,"index":25},"identifierName":"await"},
|
|
"name": "await"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":29,"end":30,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":30,"index":30},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":37,"end":39,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":39,"index":39}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|