(node)
| 15025 | } |
| 15026 | ts.isExternalModuleAugmentation = isExternalModuleAugmentation; |
| 15027 | function isModuleAugmentationExternal(node) { |
| 15028 | // external module augmentation is a ambient module declaration that is either: |
| 15029 | // - defined in the top level scope and source file is an external module |
| 15030 | // - defined inside ambient module declaration located in the top level scope and source file not an external module |
| 15031 | switch (node.parent.kind) { |
| 15032 | case 305 /* SyntaxKind.SourceFile */: |
| 15033 | return ts.isExternalModule(node.parent); |
| 15034 | case 262 /* SyntaxKind.ModuleBlock */: |
| 15035 | return isAmbientModule(node.parent.parent) && ts.isSourceFile(node.parent.parent.parent) && !ts.isExternalModule(node.parent.parent.parent); |
| 15036 | } |
| 15037 | return false; |
| 15038 | } |
| 15039 | ts.isModuleAugmentationExternal = isModuleAugmentationExternal; |
| 15040 | function getNonAugmentationDeclaration(symbol) { |
| 15041 | var _a; |
no test coverage detected