{ "type": "Script", "span": { "start": 0, "end": 175, "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": 38, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 16, "end": 36, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 26, "end": 27, "ctxt": 0 }, "value": "x", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 27, "end": 35, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 29, "end": 35, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": "protected", "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": 40, "end": 91, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 50, "end": 51, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 60, "end": 63, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 60, "end": 63, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 64, "end": 91, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 79, "end": 89, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 79, "end": 80, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 80, "end": 88, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 82, "end": 88, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 93, "end": 136, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 103, "end": 105, "ctxt": 0 }, "value": "I2", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 114, "end": 117, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 114, "end": 117, "ctxt": 0 }, "value": "Foo", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 118, "end": 136, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 124, "end": 134, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 124, "end": 125, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 125, "end": 133, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 127, "end": 133, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 138, "end": 148, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 142, "end": 147, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 142, "end": 143, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 143, "end": 147, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 145, "end": 147, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 145, "end": 147, "ctxt": 0 }, "value": "I2", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 149, "end": 161, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 153, "end": 160, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 153, "end": 154, "ctxt": 0 }, "value": "r", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 157, "end": 160, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 157, "end": 158, "ctxt": 0 }, "value": "i", "optional": false }, "property": { "type": "Identifier", "span": { "start": 159, "end": 160, "ctxt": 0 }, "value": "y", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 162, "end": 175, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 166, "end": 174, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 166, "end": 168, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 171, "end": 174, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 171, "end": 172, "ctxt": 0 }, "value": "i", "optional": false }, "property": { "type": "Identifier", "span": { "start": 173, "end": 174, "ctxt": 0 }, "value": "x", "optional": false } }, "definite": false } ] } ], "interpreter": null }