Files

91 lines
4.1 KiB
JSON

{
"type": "File",
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":56}},
"program": {
"type": "Program",
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":56}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":56}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":55,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":1,"index":55}},
"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": "ArrowFunctionExpression",
"start":12,"end":55,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":3,"column":1,"index":55}},
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "ObjectPattern",
"start":19,"end":34,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":34,"index":34}},
"properties": [
{
"type": "ObjectProperty",
"start":21,"end":32,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":32,"index":32}},
"method": false,
"key": {
"type": "Identifier",
"start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26},"identifierName":"async"},
"name": "async"
},
"computed": false,
"shorthand": true,
"value": {
"type": "AssignmentPattern",
"start":21,"end":32,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":32,"index":32}},
"left": {
"type": "Identifier",
"start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26},"identifierName":"async"},
"name": "async"
},
"right": {
"type": "Identifier",
"start":29,"end":32,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":32,"index":32},"identifierName":"bar"},
"name": "bar"
}
}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":39,"end":55,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":3,"column":1,"index":55}},
"body": [
{
"type": "ExpressionStatement",
"start":43,"end":53,"loc":{"start":{"line":2,"column":2,"index":43},"end":{"line":2,"column":12,"index":53}},
"expression": {
"type": "AwaitExpression",
"start":43,"end":52,"loc":{"start":{"line":2,"column":2,"index":43},"end":{"line":2,"column":11,"index":52}},
"argument": {
"type": "Identifier",
"start":49,"end":52,"loc":{"start":{"line":2,"column":8,"index":49},"end":{"line":2,"column":11,"index":52},"identifierName":"baz"},
"name": "baz"
}
}
}
],
"directives": []
}
}
}
],
"kind": "const"
}
],
"directives": []
}
}