| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: A getter cannot be a generator. (2:9)", |
| 6 |
"SyntaxError: A setter cannot be a generator. (3:9)" |
| 7 |
], |
| 8 |
"program": { |
| 9 |
"type": "Program", |
| 10 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, |
| 11 |
"sourceType": "script", |
| 12 |
"interpreter": null, |
| 13 |
"body": [ |
| 14 |
{ |
| 15 |
"type": "ExpressionStatement", |
| 16 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":58}}, |
| 17 |
"expression": { |
| 18 |
"type": "ObjectExpression", |
| 19 |
"start":1,"end":57,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":4,"column":1,"index":57}}, |
| 20 |
"properties": [ |
| 21 |
{ |
| 22 |
"type": "ObjectMethod", |
| 23 |
"start":7,"end":26,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":23,"index":26}}, |
| 24 |
"method": false, |
| 25 |
"key": { |
| 26 |
"type": "Identifier", |
| 27 |
"start":12,"end":20,"loc":{"start":{"line":2,"column":9,"index":12},"end":{"line":2,"column":17,"index":20},"identifierName":"iterator"}, |
| 28 |
"name": "iterator" |
| 29 |
}, |
| 30 |
"computed": false, |
| 31 |
"kind": "get", |
| 32 |
"id": null, |
| 33 |
"generator": true, |
| 34 |
"async": false, |
| 35 |
"params": [], |
| 36 |
"body": { |
| 37 |
"type": "BlockStatement", |
| 38 |
"start":23,"end":26,"loc":{"start":{"line":2,"column":20,"index":23},"end":{"line":2,"column":23,"index":26}}, |
| 39 |
"body": [], |
| 40 |
"directives": [] |
| 41 |
} |
| 42 |
}, |
| 43 |
{ |
| 44 |
"type": "ObjectMethod", |
| 45 |
"start":32,"end":55,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":27,"index":55}}, |
| 46 |
"method": false, |
| 47 |
"key": { |
| 48 |
"type": "Identifier", |
| 49 |
"start":37,"end":45,"loc":{"start":{"line":3,"column":9,"index":37},"end":{"line":3,"column":17,"index":45},"identifierName":"iterator"}, |
| 50 |
"name": "iterator" |
| 51 |
}, |
| 52 |
"computed": false, |
| 53 |
"kind": "set", |
| 54 |
"id": null, |
| 55 |
"generator": true, |
| 56 |
"async": false, |
| 57 |
"params": [ |
| 58 |
{ |
| 59 |
"type": "Identifier", |
| 60 |
"start":46,"end":50,"loc":{"start":{"line":3,"column":18,"index":46},"end":{"line":3,"column":22,"index":50},"identifierName":"iter"}, |
| 61 |
"name": "iter" |
| 62 |
} |
| 63 |
], |
| 64 |
"body": { |
| 65 |
"type": "BlockStatement", |
| 66 |
"start":52,"end":55,"loc":{"start":{"line":3,"column":24,"index":52},"end":{"line":3,"column":27,"index":55}}, |
| 67 |
"body": [], |
| 68 |
"directives": [] |
| 69 |
} |
| 70 |
} |
| 71 |
], |
| 72 |
"extra": { |
| 73 |
"parenthesized": true, |
| 74 |
"parenStart": 0 |
| 75 |
} |
| 76 |
} |
| 77 |
} |
| 78 |
], |
| 79 |
"directives": [] |
| 80 |
} |
| 81 |
} |