{ "type": "Script", "span": { "start": 15, "end": 465, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 24, "end": 27, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 28, "end": 53, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 28, "end": 53, "ctxt": 0 }, "rest": { "start": 28, "end": 31, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 31, "end": 32, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 32, "end": 53, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 34, "end": 53, "ctxt": 0 }, "elemType": { "type": "TsParenthesizedType", "span": { "start": 34, "end": 51, "ctxt": 0 }, "typeAnnotation": { "type": "TsUnionType", "span": { "start": 35, "end": 50, "ctxt": 0 }, "types": [ { "type": "TsKeywordType", "span": { "start": 35, "end": 41, "ctxt": 0 }, "kind": "symbol" }, { "type": "TsKeywordType", "span": { "start": 44, "end": 50, "ctxt": 0 }, "kind": "string" } ] } } } } } } ], "decorators": [], "span": { "start": 15, "end": 58, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 55, "end": 58, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 65, "end": 79, "ctxt": 0 }, "value": "SymbolIterator", "optional": false }, "declare": false, "span": { "start": 59, "end": 237, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 86, "end": 181, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 86, "end": 90, "ctxt": 0 }, "value": "next", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 86, "end": 181, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 93, "end": 181, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 103, "end": 175, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 110, "end": 174, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 124, "end": 129, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "CallExpression", "span": { "start": 131, "end": 139, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 131, "end": 137, "ctxt": 0 }, "value": "Symbol", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 153, "end": 157, "ctxt": 0 }, "value": "done", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 159, "end": 164, "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": 187, "end": 235, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 187, "end": 204, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 188, "end": 203, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 188, "end": 194, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 195, "end": 203, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 187, "end": 235, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 207, "end": 235, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 217, "end": 229, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 224, "end": 228, "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": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 245, "end": 260, "ctxt": 0 }, "value": "_StringIterator", "optional": false }, "declare": false, "span": { "start": 239, "end": 412, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 267, "end": 356, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 267, "end": 271, "ctxt": 0 }, "value": "next", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 267, "end": 356, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 274, "end": 356, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 284, "end": 350, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 291, "end": 349, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 305, "end": 310, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 312, "end": 314, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 328, "end": 332, "ctxt": 0 }, "value": "done", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 334, "end": 339, "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": 362, "end": 410, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 362, "end": 379, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 363, "end": 378, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 363, "end": 369, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 370, "end": 378, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 362, "end": 410, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 382, "end": 410, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 392, "end": 404, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 399, "end": 403, "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": "ExpressionStatement", "span": { "start": 414, "end": 465, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 414, "end": 464, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 414, "end": 417, "ctxt": 0 }, "value": "foo", "optional": false }, "arguments": [ { "spread": { "start": 418, "end": 421, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 421, "end": 439, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 425, "end": 439, "ctxt": 0 }, "value": "SymbolIterator", "optional": false }, "arguments": null, "typeArguments": null } }, { "spread": { "start": 441, "end": 444, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 444, "end": 463, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 448, "end": 463, "ctxt": 0 }, "value": "_StringIterator", "optional": false }, "arguments": null, "typeArguments": null } } ], "typeArguments": null } } ], "interpreter": null }