{ "type": "Script", "span": { "start": 73, "end": 784, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 73, "end": 105, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 83, "end": 84, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 85, "end": 105, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 91, "end": 103, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 91, "end": 94, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 94, "end": 102, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 96, "end": 102, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 107, "end": 139, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 117, "end": 118, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 119, "end": 139, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 125, "end": 137, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 125, "end": 128, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 128, "end": 136, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 130, "end": 136, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 141, "end": 150, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 145, "end": 149, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 145, "end": 146, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 146, "end": 149, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 148, "end": 149, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 148, "end": 149, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 151, "end": 165, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 155, "end": 165, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 155, "end": 157, "ctxt": 0 }, "value": "r1", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 160, "end": 165, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 160, "end": 161, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 162, "end": 165, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 166, "end": 181, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 170, "end": 180, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 170, "end": 172, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 175, "end": 180, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 175, "end": 176, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 177, "end": 180, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] }, { "type": "TsInterfaceDeclaration", "span": { "start": 205, "end": 252, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 215, "end": 216, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 216, "end": 219, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 217, "end": 218, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 217, "end": 218, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 220, "end": 252, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 226, "end": 238, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 226, "end": 229, "ctxt": 0 }, "value": "baz", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 229, "end": 237, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 231, "end": 237, "ctxt": 0 }, "kind": "string" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 243, "end": 250, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 243, "end": 246, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 246, "end": 249, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 248, "end": 249, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 248, "end": 249, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 254, "end": 284, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 264, "end": 265, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 265, "end": 268, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 266, "end": 267, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 266, "end": 267, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 269, "end": 284, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 275, "end": 282, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 275, "end": 278, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 278, "end": 281, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 280, "end": 281, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 280, "end": 281, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 286, "end": 303, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 290, "end": 302, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 290, "end": 291, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 291, "end": 302, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 293, "end": 302, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 293, "end": 294, "ctxt": 0 }, "value": "B", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 294, "end": 302, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 295, "end": 301, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 304, "end": 318, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 308, "end": 318, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 308, "end": 310, "ctxt": 0 }, "value": "r3", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 313, "end": 318, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 313, "end": 314, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 315, "end": 318, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 319, "end": 334, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 323, "end": 333, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 323, "end": 325, "ctxt": 0 }, "value": "r4", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 328, "end": 333, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 328, "end": 329, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 330, "end": 333, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 390, "end": 784, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 397, "end": 398, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 399, "end": 784, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 405, "end": 445, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 415, "end": 416, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 417, "end": 445, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 427, "end": 439, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 427, "end": 430, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 430, "end": 438, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 432, "end": 438, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 451, "end": 491, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 461, "end": 462, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 463, "end": 491, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 473, "end": 485, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 473, "end": 476, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 476, "end": 484, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 478, "end": 484, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 497, "end": 506, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 501, "end": 505, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 501, "end": 502, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 502, "end": 505, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 504, "end": 505, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 504, "end": 505, "ctxt": 0 }, "value": "A", "optional": false }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 511, "end": 526, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 515, "end": 525, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 515, "end": 517, "ctxt": 0 }, "value": "r1", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 520, "end": 525, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 520, "end": 521, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 522, "end": 525, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 549, "end": 564, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 553, "end": 563, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 553, "end": 555, "ctxt": 0 }, "value": "r2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 558, "end": 563, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 558, "end": 559, "ctxt": 0 }, "value": "a", "optional": false }, "property": { "type": "Identifier", "span": { "start": 560, "end": 563, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] }, { "type": "TsInterfaceDeclaration", "span": { "start": 595, "end": 633, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 605, "end": 606, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 606, "end": 609, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 607, "end": 608, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 607, "end": 608, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 610, "end": 633, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 620, "end": 627, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 620, "end": 623, "ctxt": 0 }, "value": "foo", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 623, "end": 626, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 625, "end": 626, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 625, "end": 626, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "TsInterfaceDeclaration", "span": { "start": 639, "end": 677, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 649, "end": 650, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 650, "end": 653, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 651, "end": 652, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 651, "end": 652, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "constraint": null, "default": null } ] }, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 654, "end": 677, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 664, "end": 671, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 664, "end": 667, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 667, "end": 670, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 669, "end": 670, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 669, "end": 670, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 683, "end": 700, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 687, "end": 699, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 687, "end": 688, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 688, "end": 699, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 690, "end": 699, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 690, "end": 691, "ctxt": 0 }, "value": "B", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 691, "end": 699, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 692, "end": 698, "ctxt": 0 }, "kind": "string" } ] } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 705, "end": 719, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 709, "end": 719, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 709, "end": 711, "ctxt": 0 }, "value": "r3", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 714, "end": 719, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 714, "end": 715, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 716, "end": 719, "ctxt": 0 }, "value": "foo", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 742, "end": 757, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 746, "end": 756, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 746, "end": 748, "ctxt": 0 }, "value": "r4", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 751, "end": 756, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 751, "end": 752, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 753, "end": 756, "ctxt": 0 }, "value": "bar", "optional": false } }, "definite": false } ] } ] } } ], "interpreter": null }