{ "type": "Script", "span": { "start": 15, "end": 242, "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": 203, "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": 124, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 80, "end": 84, "ctxt": 0 }, "value": "done", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 86, "end": 91, "ctxt": 0 }, "value": false } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 105, "end": 110, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 112, "end": 114, "ctxt": 0 }, "value": "", "raw": "\"\"" } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassProperty", "span": { "start": 136, "end": 147, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 136, "end": 142, "ctxt": 0 }, "value": "return", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 145, "end": 146, "ctxt": 0 }, "value": 0.0, "raw": "0" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 153, "end": 201, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 153, "end": 170, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 154, "end": 169, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 154, "end": 160, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 161, "end": 169, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 153, "end": 201, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 173, "end": 201, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 183, "end": 195, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 190, "end": 194, "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": "ForOfStatement", "span": { "start": 205, "end": 242, "ctxt": 0 }, "await": null, "left": { "type": "VariableDeclaration", "span": { "start": 210, "end": 215, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 214, "end": 215, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 214, "end": 215, "ctxt": 0 }, "value": "v", "optional": false, "typeAnnotation": null }, "init": null, "definite": false } ] }, "right": { "type": "NewExpression", "span": { "start": 219, "end": 237, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 223, "end": 237, "ctxt": 0 }, "value": "StringIterator", "optional": false }, "arguments": null, "typeArguments": null }, "body": { "type": "BlockStatement", "span": { "start": 239, "end": 242, "ctxt": 0 }, "stmts": [] } } ], "interpreter": null }