81 lines
3.2 KiB
JSON
81 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":60,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":59,"loc":{"start":{"line":1,"column":6},"end":{"line":3,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"init": {
|
|
"type": "FunctionExpression",
|
|
"start":12,"end":59,"loc":{"start":{"line":1,"column":12},"end":{"line":3,"column":1}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": true,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start":27,"end":41,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":41}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":29,"end":39,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":39}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":29,"end":34,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":34},"identifierName":"async"},
|
|
"name": "async"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":36,"end":39,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":39},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":43,"end":59,"loc":{"start":{"line":1,"column":43},"end":{"line":3,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":47,"end":57,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":12}},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start":47,"end":56,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":11}},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":53,"end":56,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":11},"identifierName":"baz"},
|
|
"name": "baz"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |