{ "type": "Script", "span": { "start": 15, "end": 142, "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": 59, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 29, "end": 57, "ctxt": 0 }, "key": { "type": "Computed", "span": { "start": 29, "end": 46, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 30, "end": 45, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 30, "end": 36, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 37, "end": 45, "ctxt": 0 }, "value": "iterator", "optional": false } } }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 46, "end": 56, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 48, "end": 56, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 50, "end": 52, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 50, "end": 51, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": null, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 53, "end": 54, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 53, "end": 54, "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": 60, "end": 106, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 72, "end": 106, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 78, "end": 104, "ctxt": 0 }, "readonly": false, "key": { "type": "MemberExpression", "span": { "start": 79, "end": 94, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 79, "end": 85, "ctxt": 0 }, "value": "Symbol", "optional": false }, "property": { "type": "Identifier", "span": { "start": 86, "end": 94, "ctxt": 0 }, "value": "iterator", "optional": false } }, "computed": true, "optional": true, "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 }