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