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