Files

91 lines
4.1 KiB
JSON

{
"type": "File",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":61}},
"program": {
"type": "Program",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":61}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":61}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":60,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":1,"index":60}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"},
"name": "foo"
},
"init": {
"type": "FunctionExpression",
"start":12,"end":60,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":60}},
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "ObjectPattern",
"start":27,"end":42,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":42,"index":42}},
"properties": [
{
"type": "ObjectProperty",
"start":29,"end":40,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":40,"index":40}},
"key": {
"type": "Identifier",
"start":29,"end":34,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":34,"index":34},"identifierName":"async"},
"name": "async"
},
"computed": false,
"method": false,
"shorthand": true,
"value": {
"type": "AssignmentPattern",
"start":29,"end":40,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":40,"index":40}},
"left": {
"type": "Identifier",
"start":29,"end":34,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":34,"index":34},"identifierName":"async"},
"name": "async"
},
"right": {
"type": "Identifier",
"start":37,"end":40,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":40,"index":40},"identifierName":"bar"},
"name": "bar"
}
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":44,"end":60,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":3,"column":1,"index":60}},
"body": [
{
"type": "ExpressionStatement",
"start":48,"end":58,"loc":{"start":{"line":2,"column":2,"index":48},"end":{"line":2,"column":12,"index":58}},
"expression": {
"type": "AwaitExpression",
"start":48,"end":57,"loc":{"start":{"line":2,"column":2,"index":48},"end":{"line":2,"column":11,"index":57}},
"argument": {
"type": "Identifier",
"start":54,"end":57,"loc":{"start":{"line":2,"column":8,"index":54},"end":{"line":2,"column":11,"index":57},"identifierName":"baz"},
"name": "baz"
}
}
}
],
"directives": []
}
}
}
],
"kind": "const"
}
],
"directives": []
}
}