{ "type": "Script", "span": { "start": 0, "end": 173, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 6, "end": 9, "ctxt": 0 }, "value": "Foo", "optional": false }, "declare": false, "span": { "start": 0, "end": 36, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 16, "end": 34, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 24, "end": 25, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 25, "end": 33, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 27, "end": 33, "ctxt": 0 }, "kind": "string" } }, "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": 38, "end": 89, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 48, "end": 49, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 58, "end": 61, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 58, "end": 61, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 62, "end": 89, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 77, "end": 87, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 77, "end": 78, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 78, "end": 86, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 80, "end": 86, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 91, "end": 134, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 101, "end": 103, "ctxt": 0 }, "value": "I2", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 112, "end": 115, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 112, "end": 115, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 116, "end": 134, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 122, "end": 132, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 122, "end": 123, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 123, "end": 131, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 125, "end": 131, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 136, "end": 146, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 140, "end": 145, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 140, "end": 141, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 141, "end": 145, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 143, "end": 145, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 143, "end": 145, "ctxt": 0 }, "value": "I2", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 147, "end": 159, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 151, "end": 158, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 151, "end": 152, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 155, "end": 158, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 155, "end": 156, "ctxt": 0 }, "value": "i", "optional": false }, "property": { "type": "Identifier", "span": { "start": 157, "end": 158, "ctxt": 0 }, "value": "y", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 160, "end": 173, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 164, "end": 172, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 164, "end": 166, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 169, "end": 172, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 169, "end": 170, "ctxt": 0 }, "value": "i", "optional": false }, "property": { "type": "Identifier", "span": { "start": 171, "end": 172, "ctxt": 0 }, "value": "x", "optional": false } }, "definite": false } ] } ], "interpreter": null }