Files

72 lines
2.9 KiB
JSON

{
"type": "File",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
"program": {
"type": "Program",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
"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"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":10,"end":50,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":50,"index":50}},
"body": [
{
"type": "ClassMethod",
"start":12,"end":48,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":48,"index":48}},
"static": false,
"key": {
"type": "Identifier",
"start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
"name": "bar"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "Identifier",
"start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"promise"},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start":31,"end":48,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":48,"index":48}},
"body": [
{
"type": "ExpressionStatement",
"start":33,"end":46,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":46,"index":46}},
"expression": {
"type": "AwaitExpression",
"start":33,"end":46,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":46,"index":46}},
"argument": {
"type": "Identifier",
"start":39,"end":46,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":46,"index":46},"identifierName":"promise"},
"name": "promise"
}
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}