{ "type": "File", "start": 0, "end": 52, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 52 } }, "program": { "type": "Program", "start": 0, "end": 52, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 52 } }, "sourceType": "script", "body": [ { "type": "VariableDeclaration", "start": 0, "end": 52, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4, "end": 52, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 52 } }, "id": { "type": "Identifier", "start": 4, "end": 7, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 7 }, "identifierName": "foo" }, "name": "foo" }, "init": { "type": "FunctionExpression", "start": 10, "end": 52, "loc": { "start": { "line": 1, "column": 10 }, "end": { "line": 1, "column": 52 } }, "id": null, "generator": false, "expression": false, "async": true, "params": [ { "type": "Identifier", "start": 25, "end": 32, "loc": { "start": { "line": 1, "column": 25 }, "end": { "line": 1, "column": 32 }, "identifierName": "promise" }, "name": "promise" } ], "body": { "type": "BlockStatement", "start": 34, "end": 52, "loc": { "start": { "line": 1, "column": 34 }, "end": { "line": 1, "column": 52 } }, "body": [ { "type": "ExpressionStatement", "start": 36, "end": 50, "loc": { "start": { "line": 1, "column": 36 }, "end": { "line": 1, "column": 50 } }, "expression": { "type": "AwaitExpression", "start": 36, "end": 49, "loc": { "start": { "line": 1, "column": 36 }, "end": { "line": 1, "column": 49 } }, "argument": { "type": "Identifier", "start": 42, "end": 49, "loc": { "start": { "line": 1, "column": 42 }, "end": { "line": 1, "column": 49 }, "identifierName": "promise" }, "name": "promise" } } } ], "directives": [] } } } ], "kind": "var" } ], "directives": [] } }