{ "type": "File", "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}}, "errors": [ "SyntaxError: Private name #x is not defined. (3:4)" ], "program": { "type": "Program", "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}}, "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":42,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":42}}, "body": [ { "type": "ClassMethod", "start":14,"end":40,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":4,"column":3,"index":40}}, "static": false, "key": { "type": "Identifier", "start":14,"end":18,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":6,"index":18},"identifierName":"test"}, "name": "test" }, "computed": false, "kind": "method", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start":21,"end":40,"loc":{"start":{"line":2,"column":9,"index":21},"end":{"line":4,"column":3,"index":40}}, "body": [ { "type": "ExpressionStatement", "start":27,"end":36,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":13,"index":36}}, "expression": { "type": "BinaryExpression", "start":27,"end":35,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":12,"index":35}}, "left": { "type": "PrivateName", "start":27,"end":29,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":6,"index":29}}, "id": { "type": "Identifier", "start":28,"end":29,"loc":{"start":{"line":3,"column":5,"index":28},"end":{"line":3,"column":6,"index":29},"identifierName":"x"}, "name": "x" } }, "operator": "in", "right": { "type": "ObjectExpression", "start":33,"end":35,"loc":{"start":{"line":3,"column":10,"index":33},"end":{"line":3,"column":12,"index":35}}, "properties": [] } } } ], "directives": [] } } ] } } ], "directives": [] } }