{ "type": "File", "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}}, "program": { "type": "Program", "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}}, "sourceType": "script", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}}, "id": { "type": "Identifier", "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"}, "name": "A" }, "superClass": null, "body": { "type": "ClassBody", "start":8,"end":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":30,"index":30}}, "body": [ { "type": "ClassMethod", "start":9,"end":29,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":29,"index":29}}, "static": false, "kind": "method", "key": { "type": "Identifier", "start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"gen"}, "name": "gen" }, "computed": false, "id": null, "generator": true, "async": false, "params": [ { "type": "Identifier", "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"v"}, "name": "v" } ], "body": { "type": "BlockStatement", "start":17,"end":29,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":29,"index":29}}, "body": [ { "type": "ExpressionStatement", "start":19,"end":27,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":27,"index":27}}, "expression": { "type": "YieldExpression", "start":19,"end":26,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":26,"index":26}}, "delegate": false, "argument": { "type": "Identifier", "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26},"identifierName":"v"}, "name": "v" } } } ], "directives": [] } } ] } } ], "directives": [] } }