{ "type": "Script", "span": { "start": 15, "end": 180, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 21, "end": 35, "ctxt": 0 }, "value": "StringIterator", "optional": false }, "declare": false, "span": { "start": 15, "end": 129, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 42, "end": 74, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 42, "end": 46, "ctxt": 0 }, "value": "next", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 42, "end": 74, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 49, "end": 74, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 59, "end": 68, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 66, "end": 67, "ctxt": 0 }, "value": "x", "optional": 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": 79, "end": 127, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 79, "end": 96, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 80, "end": 95, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 80, "end": 86, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 87, "end": 95, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 79, "end": 127, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 99, "end": 127, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 109, "end": 121, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 116, "end": 120, "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": 131, "end": 142, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 135, "end": 141, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 135, "end": 136, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 136, "end": 141, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 138, "end": 141, "ctxt": 0 }, "kind": "any" } } }, "init": null, "definite": false } ] }, { "type": "ForOfStatement", "span": { "start": 143, "end": 180, "ctxt": 0 }, "await": null, "left": { "type": "VariableDeclaration", "span": { "start": 148, "end": 153, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 152, "end": 153, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 152, "end": 153, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null }, "init": null, "definite": false } ] }, "right": { "type": "NewExpression", "span": { "start": 157, "end": 175, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 161, "end": 175, "ctxt": 0 }, "value": "StringIterator", "optional": false }, "arguments": null, "typeArguments": null }, "body": { "type": "BlockStatement", "span": { "start": 177, "end": 180, "ctxt": 0 }, "stmts": [] } } ], "interpreter": null }