Files

99 lines
4.3 KiB
JSON

{
"type": "File",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
"program": {
"type": "Program",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":54,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":54,"index":54}},
"id": {
"type": "Identifier",
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"o"},
"name": "o"
},
"init": {
"type": "ObjectExpression",
"start":8,"end":54,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":54,"index":54}},
"properties": [
{
"type": "ObjectProperty",
"start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14}},
"method": false,
"key": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
{
"type": "ObjectMethod",
"start":16,"end":52,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":52,"index":52}},
"method": true,
"key": {
"type": "Identifier",
"start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"},
"name": "foo"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "Identifier",
"start":26,"end":33,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":33,"index":33},"identifierName":"promise"},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start":35,"end":52,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":52,"index":52}},
"body": [
{
"type": "ExpressionStatement",
"start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}},
"expression": {
"type": "AwaitExpression",
"start":37,"end":50,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":50,"index":50}},
"argument": {
"type": "Identifier",
"start":43,"end":50,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":50,"index":50},"identifierName":"promise"},
"name": "promise"
}
}
}
],
"directives": []
}
}
]
}
}
],
"kind": "var"
}
],
"directives": []
}
}