{ "type": "Script", "span": { "start": 15, "end": 235, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 21, "end": 35, "ctxt": 0 }, "value": "NumberIterator", "optional": false }, "declare": false, "span": { "start": 15, "end": 185, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 42, "end": 130, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 42, "end": 46, "ctxt": 0 }, "value": "next", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 42, "end": 130, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 49, "end": 130, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 59, "end": 124, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 66, "end": 123, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 80, "end": 85, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 87, "end": 88, "ctxt": 0 }, "value": 0.0 } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 102, "end": 106, "ctxt": 0 }, "value": "done", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 108, "end": 113, "ctxt": 0 }, "value": false } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 135, "end": 183, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 135, "end": 152, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 136, "end": 151, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 136, "end": 142, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 143, "end": 151, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 135, "end": 183, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 155, "end": 183, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 165, "end": 177, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 172, "end": 176, "ctxt": 0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 187, "end": 201, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 191, "end": 200, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 191, "end": 192, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 192, "end": 200, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 194, "end": 200, "ctxt": 0 }, "kind": "string" } } }, "init": null, "definite": false } ] }, { "type": "ForOfStatement", "span": { "start": 202, "end": 235, "ctxt": 0 }, "await": null, "left": { "type": "Identifier", "span": { "start": 207, "end": 208, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 212, "end": 230, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 216, "end": 230, "ctxt": 0 }, "value": "NumberIterator", "optional": false }, "arguments": null, "typeArguments": null }, "body": { "type": "BlockStatement", "span": { "start": 232, "end": 235, "ctxt": 0 }, "stmts": [] } } ], "interpreter": null }