{ "type": "File", "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, "errors": [ "SyntaxError: A getter cannot be a generator. (2:9)", "SyntaxError: A setter cannot be a generator. (3:9)" ], "program": { "type": "Program", "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ExpressionStatement", "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, "expression": { "type": "ObjectExpression", "start":1,"end":57,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":4,"column":1,"index":57}}, "properties": [ { "type": "ObjectMethod", "start":7,"end":26,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":23,"index":26}}, "method": false, "key": { "type": "Identifier", "start":12,"end":20,"loc":{"start":{"line":2,"column":9,"index":12},"end":{"line":2,"column":17,"index":20},"identifierName":"iterator"}, "name": "iterator" }, "computed": false, "kind": "get", "id": null, "generator": true, "async": false, "params": [], "body": { "type": "BlockStatement", "start":23,"end":26,"loc":{"start":{"line":2,"column":20,"index":23},"end":{"line":2,"column":23,"index":26}}, "body": [], "directives": [] } }, { "type": "ObjectMethod", "start":32,"end":55,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":27,"index":55}}, "method": false, "key": { "type": "Identifier", "start":37,"end":45,"loc":{"start":{"line":3,"column":9,"index":37},"end":{"line":3,"column":17,"index":45},"identifierName":"iterator"}, "name": "iterator" }, "computed": false, "kind": "set", "id": null, "generator": true, "async": false, "params": [ { "type": "Identifier", "start":46,"end":50,"loc":{"start":{"line":3,"column":18,"index":46},"end":{"line":3,"column":22,"index":50},"identifierName":"iter"}, "name": "iter" } ], "body": { "type": "BlockStatement", "start":52,"end":55,"loc":{"start":{"line":3,"column":24,"index":52},"end":{"line":3,"column":27,"index":55}}, "body": [], "directives": [] } } ], "extra": { "parenthesized": true, "parenStart": 0 } } } ], "directives": [] } }