{ "type": "File", "start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":78}}, "errors": [ "SyntaxError: `super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class? (5:4)" ], "program": { "type": "Program", "start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":78}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}}, "id": { "type": "Identifier", "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"B"}, "name": "B" }, "superClass": null, "body": { "type": "ClassBody", "start":8,"end":10,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":10,"index":10}}, "body": [] } }, { "type": "ClassDeclaration", "start":11,"end":78,"loc":{"start":{"line":2,"column":0,"index":11},"end":{"line":7,"column":1,"index":78}}, "id": { "type": "Identifier", "start":17,"end":18,"loc":{"start":{"line":2,"column":6,"index":17},"end":{"line":2,"column":7,"index":18},"identifierName":"C"}, "name": "C" }, "superClass": { "type": "Identifier", "start":27,"end":28,"loc":{"start":{"line":2,"column":16,"index":27},"end":{"line":2,"column":17,"index":28},"identifierName":"B"}, "name": "B" }, "body": { "type": "ClassBody", "start":29,"end":78,"loc":{"start":{"line":2,"column":18,"index":29},"end":{"line":7,"column":1,"index":78}}, "body": [ { "type": "ClassMethod", "start":33,"end":48,"loc":{"start":{"line":3,"column":2,"index":33},"end":{"line":3,"column":17,"index":48}}, "static": true, "key": { "type": "Identifier", "start":40,"end":43,"loc":{"start":{"line":3,"column":9,"index":40},"end":{"line":3,"column":12,"index":43},"identifierName":"foo"}, "name": "foo" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":46,"end":48,"loc":{"start":{"line":3,"column":15,"index":46},"end":{"line":3,"column":17,"index":48}}, "body": [], "directives": [] } }, { "type": "StaticBlock", "start":51,"end":76,"loc":{"start":{"line":4,"column":2,"index":51},"end":{"line":6,"column":3,"index":76}}, "body": [ { "type": "ExpressionStatement", "start":64,"end":72,"loc":{"start":{"line":5,"column":4,"index":64},"end":{"line":5,"column":12,"index":72}}, "expression": { "type": "CallExpression", "start":64,"end":71,"loc":{"start":{"line":5,"column":4,"index":64},"end":{"line":5,"column":11,"index":71}}, "callee": { "type": "Super", "start":64,"end":69,"loc":{"start":{"line":5,"column":4,"index":64},"end":{"line":5,"column":9,"index":69}} }, "arguments": [] } } ] } ] } } ], "directives": [] } }