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