{ "type": "Script", "span": { "start": 1, "end": 158, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 1, "end": 33, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 11, "end": 12, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 13, "end": 33, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 19, "end": 31, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 19, "end": 22, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 24, "end": 30, "ctxt": 0 }, "typeAnnotation": { "type": "TsThisType", "span": { "start": 26, "end": 30, "ctxt": 0 } } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 34, "end": 76, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 44, "end": 45, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 54, "end": 55, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 54, "end": 55, "ctxt": 0 }, "value": "A", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 56, "end": 76, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 62, "end": 74, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 62, "end": 65, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 67, "end": 73, "ctxt": 0 }, "typeAnnotation": { "type": "TsThisType", "span": { "start": 69, "end": 73, "ctxt": 0 } } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 77, "end": 119, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 87, "end": 88, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 97, "end": 98, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 97, "end": 98, "ctxt": 0 }, "value": "B", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 99, "end": 119, "ctxt": 0 }, "body": [ { "type": "TsMethodSignature", "span": { "start": 105, "end": 117, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 105, "end": 108, "ctxt": 0 }, "value": "baz", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 110, "end": 116, "ctxt": 0 }, "typeAnnotation": { "type": "TsThisType", "span": { "start": 112, "end": 116, "ctxt": 0 } } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 120, "end": 129, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 124, "end": 128, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 124, "end": 125, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 125, "end": 128, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 127, "end": 128, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 127, "end": 128, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 130, "end": 158, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 134, "end": 157, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 134, "end": 135, "ctxt": 0 }, "value": "z", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 138, "end": 157, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 138, "end": 155, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 138, "end": 151, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 138, "end": 149, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 138, "end": 145, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 138, "end": 143, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 138, "end": 139, "ctxt": 0 }, "value": "c", "optional": false }, "property": { "type": "Identifier", "span": { "start": 140, "end": 143, "ctxt": 0 }, "value": "foo", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 146, "end": 149, "ctxt": 0 }, "value": "bar", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "Identifier", "span": { "start": 152, "end": 155, "ctxt": 0 }, "value": "baz", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }