{ "type": "File", "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}}, "errors": [ "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (5:6)" ], "program": { "type": "Program", "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "FunctionDeclaration", "start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":95}}, "id": { "type": "Identifier", "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"}, "name": "foo" }, "generator": false, "async": true, "params": [], "body": { "type": "BlockStatement", "start":21,"end":95,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":8,"column":1,"index":95}}, "body": [ { "type": "ClassDeclaration", "start":25,"end":93,"loc":{"start":{"line":2,"column":2,"index":25},"end":{"line":7,"column":3,"index":93}}, "id": { "type": "Identifier", "start":31,"end":32,"loc":{"start":{"line":2,"column":8,"index":31},"end":{"line":2,"column":9,"index":32},"identifierName":"C"}, "name": "C" }, "superClass": null, "body": { "type": "ClassBody", "start":33,"end":93,"loc":{"start":{"line":2,"column":10,"index":33},"end":{"line":7,"column":3,"index":93}}, "body": [ { "type": "ClassMethod", "start":39,"end":54,"loc":{"start":{"line":3,"column":4,"index":39},"end":{"line":3,"column":19,"index":54}}, "static": true, "key": { "type": "Identifier", "start":46,"end":49,"loc":{"start":{"line":3,"column":11,"index":46},"end":{"line":3,"column":14,"index":49},"identifierName":"foo"}, "name": "foo" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":52,"end":54,"loc":{"start":{"line":3,"column":17,"index":52},"end":{"line":3,"column":19,"index":54}}, "body": [], "directives": [] } }, { "type": "StaticBlock", "start":59,"end":89,"loc":{"start":{"line":4,"column":4,"index":59},"end":{"line":6,"column":5,"index":89}}, "body": [ { "type": "ExpressionStatement", "start":74,"end":83,"loc":{"start":{"line":5,"column":6,"index":74},"end":{"line":5,"column":15,"index":83}}, "expression": { "type": "AwaitExpression", "start":74,"end":82,"loc":{"start":{"line":5,"column":6,"index":74},"end":{"line":5,"column":14,"index":82}}, "argument": { "type": "NumericLiteral", "start":80,"end":82,"loc":{"start":{"line":5,"column":12,"index":80},"end":{"line":5,"column":14,"index":82}}, "extra": { "rawValue": 42, "raw": "42" }, "value": 42 } } } ] } ] } } ], "directives": [] } } ], "directives": [] } }