{ "type": "Script", "span": { "start": 16, "end": 142, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 22, "end": 23, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 16, "end": 60, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 30, "end": 58, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 30, "end": 47, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 31, "end": 46, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 31, "end": 37, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 38, "end": 46, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 47, "end": 57, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 49, "end": 57, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 51, "end": 53, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 51, "end": 52, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 54, "end": 55, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 54, "end": 55, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null } ] } }, "isStatic": false, "decorators": [], "accessibility": null, "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": 61, "end": 106, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 71, "end": 72, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 73, "end": 106, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 79, "end": 104, "ctxt": 0 }, "readonly": false, "key": { "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 } }, "computed": true, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 96, "end": 103, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 98, "end": 103, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 100, "end": 101, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 100, "end": 101, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null } ] } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 108, "end": 117, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 112, "end": 116, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 112, "end": 113, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 113, "end": 116, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 115, "end": 116, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 115, "end": 116, "ctxt": 0 }, "value": "I", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 118, "end": 128, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 118, "end": 127, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 118, "end": 119, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "right": { "type": "NewExpression", "span": { "start": 122, "end": 127, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 126, "end": 127, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": null, "typeArguments": null } } }, { "type": "VariableDeclaration", "span": { "start": 129, "end": 142, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 133, "end": 141, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 133, "end": 134, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 134, "end": 137, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 136, "end": 137, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 136, "end": 137, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } } }, "init": { "type": "Identifier", "span": { "start": 140, "end": 141, "ctxt": 0 }, "value": "i", "optional": false }, "definite": false } ] } ], "interpreter": null }