{ "type": "Program", "statements": [ { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 10 } } }, "init": null, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 11 } } }, { "type": "TSInterfaceDeclaration", "body": { "type": "TSInterfaceBody", "body": [ { "type": "TSPropertySignature", "computed": false, "optional": false, "readonly": false, "key": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 10 } } }, "typeAnnotation": { "type": "TSFunctionType", "params": [ { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 22 } } }, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 14 } } }, { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 21, "column": 27 }, "end": { "line": 21, "column": 33 } } }, "loc": { "start": { "line": 21, "column": 24 }, "end": { "line": 21, "column": 25 } } } ], "returnType": { "type": "TSBooleanKeyword", "loc": { "start": { "line": 21, "column": 38 }, "end": { "line": 21, "column": 45 } } }, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 45 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 46 } } }, { "type": "TSMethodSignature", "computed": false, "optional": false, "key": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 10 } } }, "params": [], "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 22, "column": 20 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 23, "column": 6 } } } ], "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 23, "column": 6 } } }, "id": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 20, "column": 16 } } }, "extends": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 23, "column": 6 } } } ], "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 24, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 26, "column": 10 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 12 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 10 } } }, "init": null, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 11 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 29, "column": 14 }, "end": { "line": 29, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 29, "column": 18 }, "end": { "line": 29, "column": 21 } } }, "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 21 } } }, "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 21 } } } ], "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 30, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 26, "column": 1 }, "end": { "line": 32, "column": 7 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 32, "column": 9 } } }, "body": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 11 } } }, "body": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 13 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 10 } } }, "init": null, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 11 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "t", "loc": { "start": { "line": 35, "column": 14 }, "end": { "line": 35, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 35, "column": 18 }, "end": { "line": 35, "column": 21 } } }, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 21 } } }, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 21 } } } ], "loc": { "start": { "line": 32, "column": 14 }, "end": { "line": 36, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 39, "column": 7 } } }, "declare": false, "global": false, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 39, "column": 7 } } }, "declare": false, "global": false, "loc": { "start": { "line": 32, "column": 1 }, "end": { "line": 39, "column": 7 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 9 } } }, "body": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 39, "column": 11 } } }, "body": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 39, "column": 12 }, "end": { "line": 39, "column": 13 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 10 } } }, "init": null, "loc": { "start": { "line": 40, "column": 9 }, "end": { "line": 40, "column": 10 } } } ], "kind": "let", "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 11 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "t", "loc": { "start": { "line": 42, "column": 14 }, "end": { "line": 42, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 42, "column": 21 } } }, "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 42, "column": 21 } } }, "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 42, "column": 21 } } } ], "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 43, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 39, "column": 12 }, "end": { "line": 45, "column": 8 } } }, "declare": false, "global": false, "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 45, "column": 8 } } }, "declare": false, "global": false, "loc": { "start": { "line": 39, "column": 1 }, "end": { "line": 45, "column": 8 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "k", "loc": { "start": { "line": 45, "column": 19 }, "end": { "line": 45, "column": 20 } } }, "body": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "z", "loc": { "start": { "line": 45, "column": 21 }, "end": { "line": 45, "column": 22 } } }, "body": { "type": "TSModuleBlock", "body": [], "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 47, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 45, "column": 21 }, "end": { "line": 49, "column": 8 } } }, "declare": true, "global": false, "loc": { "start": { "line": 45, "column": 9 }, "end": { "line": 49, "column": 8 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "global", "loc": { "start": { "line": 49, "column": 9 }, "end": { "line": 49, "column": 15 } } }, "body": { "type": "TSModuleBlock", "body": [], "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 51, "column": 2 } } }, "declare": true, "global": true, "loc": { "start": { "line": 49, "column": 9 }, "end": { "line": 53, "column": 8 } } }, { "type": "TSModuleDeclaration", "id": { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 21 } } }, "declare": true, "global": false, "loc": { "start": { "line": 53, "column": 9 }, "end": { "line": 55, "column": 7 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 55, "column": 12 }, "end": { "line": 55, "column": 13 } } }, "init": null, "loc": { "start": { "line": 55, "column": 12 }, "end": { "line": 55, "column": 13 } } } ], "kind": "var", "loc": { "start": { "line": 55, "column": 8 }, "end": { "line": 55, "column": 14 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 55, "column": 1 }, "end": { "line": 55, "column": 14 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "module1", "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 15 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 58, "column": 24 }, "end": { "line": 58, "column": 25 } } }, "init": null, "loc": { "start": { "line": 58, "column": 24 }, "end": { "line": 58, "column": 25 } } } ], "kind": "var", "declare": true, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 26 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 58, "column": 5 }, "end": { "line": 58, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 18 } } }, "init": null, "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 18 } } } ], "kind": "var", "declare": true, "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 19 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 60, "column": 9 }, "end": { "line": 60, "column": 10 } } }, "init": null, "loc": { "start": { "line": 60, "column": 9 }, "end": { "line": 60, "column": 10 } } } ], "kind": "var", "loc": { "start": { "line": 60, "column": 5 }, "end": { "line": 60, "column": 11 } } } ], "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 61, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 57, "column": 1 }, "end": { "line": 63, "column": 7 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "module2", "loc": { "start": { "line": 63, "column": 15 }, "end": { "line": 63, "column": 22 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "ExportNamedDeclaration", "declaration": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 64, "column": 24 }, "end": { "line": 64, "column": 25 } } }, "init": null, "loc": { "start": { "line": 64, "column": 24 }, "end": { "line": 64, "column": 25 } } } ], "kind": "var", "declare": true, "loc": { "start": { "line": 64, "column": 20 }, "end": { "line": 64, "column": 26 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 64, "column": 5 }, "end": { "line": 64, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 65, "column": 17 }, "end": { "line": 65, "column": 18 } } }, "init": null, "loc": { "start": { "line": 65, "column": 17 }, "end": { "line": 65, "column": 18 } } } ], "kind": "var", "declare": true, "loc": { "start": { "line": 65, "column": 13 }, "end": { "line": 65, "column": 19 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 66, "column": 9 }, "end": { "line": 66, "column": 10 } } }, "init": null, "loc": { "start": { "line": 66, "column": 9 }, "end": { "line": 66, "column": 10 } } } ], "kind": "var", "loc": { "start": { "line": 66, "column": 5 }, "end": { "line": 66, "column": 11 } } } ], "loc": { "start": { "line": 63, "column": 23 }, "end": { "line": 67, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 63, "column": 8 }, "end": { "line": 69, "column": 8 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 63, "column": 1 }, "end": { "line": 69, "column": 8 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "module3", "loc": { "start": { "line": 69, "column": 16 }, "end": { "line": 69, "column": 23 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 70, "column": 9 }, "end": { "line": 70, "column": 10 } } }, "init": null, "loc": { "start": { "line": 70, "column": 9 }, "end": { "line": 70, "column": 10 } } } ], "kind": "var", "loc": { "start": { "line": 70, "column": 5 }, "end": { "line": 70, "column": 11 } } } ], "loc": { "start": { "line": 69, "column": 24 }, "end": { "line": 71, "column": 2 } } }, "declare": true, "global": false, "loc": { "start": { "line": 69, "column": 9 }, "end": { "line": 73, "column": 7 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "module4", "loc": { "start": { "line": 73, "column": 23 }, "end": { "line": 73, "column": 30 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 74, "column": 9 }, "end": { "line": 74, "column": 10 } } }, "init": null, "loc": { "start": { "line": 74, "column": 9 }, "end": { "line": 74, "column": 10 } } } ], "kind": "var", "loc": { "start": { "line": 74, "column": 5 }, "end": { "line": 74, "column": 11 } } } ], "loc": { "start": { "line": 73, "column": 31 }, "end": { "line": 75, "column": 2 } } }, "declare": true, "global": false, "loc": { "start": { "line": 73, "column": 16 }, "end": { "line": 77, "column": 8 } } }, "source": null, "specifiers": [], "loc": { "start": { "line": 73, "column": 1 }, "end": { "line": 77, "column": 8 } } }, { "type": "TSModuleDeclaration", "id": { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 77, "column": 16 }, "end": { "line": 77, "column": 21 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "TSImportEqualsDeclaration", "id": { "type": "Identifier", "name": "a", "loc": { "start": { "line": 78, "column": 19 }, "end": { "line": 78, "column": 20 } } }, "moduleReference": { "type": "TSExternalModuleReference", "expression": { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 78, "column": 31 }, "end": { "line": 78, "column": 36 } } }, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "column": 37 } } }, "isExport": true, "loc": { "start": { "line": 78, "column": 5 }, "end": { "line": 78, "column": 38 } } }, { "type": "TSImportEqualsDeclaration", "id": { "type": "Identifier", "name": "b", "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 13 } } }, "moduleReference": { "type": "TSExternalModuleReference", "expression": { "type": "StringLiteral", "value": "bar", "loc": { "start": { "line": 79, "column": 24 }, "end": { "line": 79, "column": 29 } } }, "loc": { "start": { "line": 79, "column": 16 }, "end": { "line": 79, "column": 30 } } }, "isExport": false, "loc": { "start": { "line": 79, "column": 5 }, "end": { "line": 79, "column": 31 } } }, { "type": "TSImportEqualsDeclaration", "id": { "type": "Identifier", "name": "c", "loc": { "start": { "line": 80, "column": 12 }, "end": { "line": 80, "column": 13 } } }, "moduleReference": { "type": "Identifier", "name": "require", "loc": { "start": { "line": 80, "column": 16 }, "end": { "line": 80, "column": 23 } } }, "isExport": false, "loc": { "start": { "line": 80, "column": 5 }, "end": { "line": 80, "column": 24 } } } ], "loc": { "start": { "line": 77, "column": 22 }, "end": { "line": 81, "column": 2 } } }, "declare": true, "global": false, "loc": { "start": { "line": 77, "column": 9 }, "end": { "line": 82, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 82, "column": 1 } } }