{ "type": "Script", "span": { "start": 15, "end": 146, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 21, "end": 22, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 15, "end": 64, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 29, "end": 62, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 37, "end": 54, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 38, "end": 53, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 38, "end": 44, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 45, "end": 53, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 54, "end": 61, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 56, "end": 61, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 58, "end": 59, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 58, "end": 59, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null } ] } }, "isStatic": false, "decorators": [], "accessibility": "private", "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "TsInterfaceDeclaration", "span": { "start": 65, "end": 110, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 75, "end": 76, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 77, "end": 110, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 83, "end": 108, "ctxt": 0 }, "readonly": false, "key": { "type": "MemberExpression", "span": { "start": 84, "end": 99, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 84, "end": 90, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 91, "end": 99, "ctxt": 0 }, "value": "iterator", "optional": false } }, "computed": true, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 100, "end": 107, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 102, "end": 107, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 104, "end": 105, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 104, "end": 105, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null } ] } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 112, "end": 121, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 116, "end": 120, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 116, "end": 117, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 117, "end": 120, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 119, "end": 120, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 119, "end": 120, "ctxt": 0 }, "value": "I", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 122, "end": 132, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 122, "end": 131, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 122, "end": 123, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 126, "end": 131, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": null, "typeArguments": null } } }, { "type": "VariableDeclaration", "span": { "start": 133, "end": 146, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 137, "end": 145, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 137, "end": 138, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 138, "end": 141, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 140, "end": 141, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 140, "end": 141, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } } }, "init": { "type": "Identifier", "span": { "start": 144, "end": 145, "ctxt": 0 }, "value": "i", "optional": false }, "definite": false } ] } ], "interpreter": null }