{ "type": "Script", "span": { "start": 15, "end": 267, "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": 38, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 28, "end": 38, "ctxt": 0 }, "value": "s1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 30, "end": 38, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 32, "end": 38, "ctxt": 0 }, "kind": "symbol" } } } }, { "type": "Parameter", "span": { "start": 40, "end": 54, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 40, "end": 54, "ctxt": 0 }, "rest": { "start": 40, "end": 43, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 43, "end": 44, "ctxt": 0 }, "value": "s", "optional": false, "typeAnnotation": null }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 44, "end": 54, "ctxt": 0 }, "typeAnnotation": { "type": "TsArrayType", "span": { "start": 46, "end": 54, "ctxt": 0 }, "elemType": { "type": "TsKeywordType", "span": { "start": 46, "end": 52, "ctxt": 0 }, "kind": "symbol" } } } } } ], "decorators": [], "span": { "start": 15, "end": 59, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 56, "end": 59, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 66, "end": 80, "ctxt": 0 }, "value": "SymbolIterator", "optional": false }, "declare": false, "span": { "start": 60, "end": 238, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 87, "end": 182, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 87, "end": 91, "ctxt": 0 }, "value": "next", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 87, "end": 182, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 94, "end": 182, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 104, "end": 176, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 111, "end": 175, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 125, "end": 130, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "CallExpression", "span": { "start": 132, "end": 140, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 132, "end": 138, "ctxt": 0 }, "value": "Symbol", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 154, "end": 158, "ctxt": 0 }, "value": "done", "optional": false }, "value": { "type": "BooleanLiteral", "span": { "start": 160, "end": 165, "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": 188, "end": 236, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 188, "end": 205, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 189, "end": 204, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 189, "end": 195, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 196, "end": 204, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "function": { "params": [], "decorators": [], "span": { "start": 188, "end": 236, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 208, "end": 236, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 218, "end": 230, "ctxt": 0 }, "argument": { "type": "ThisExpression", "span": { "start": 225, "end": 229, "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": 240, "end": 267, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 240, "end": 266, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 240, "end": 243, "ctxt": 0 }, "value": "foo", "optional": false }, "arguments": [ { "spread": { "start": 244, "end": 247, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 247, "end": 265, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 251, "end": 265, "ctxt": 0 }, "value": "SymbolIterator", "optional": false }, "arguments": null, "typeArguments": null } } ], "typeArguments": null } } ], "interpreter": null }