(declaration)
| 87468 | } |
| 87469 | } |
| 87470 | function getExternalModuleFileFromDeclaration(declaration) { |
| 87471 | var specifier = declaration.kind === 261 /* SyntaxKind.ModuleDeclaration */ ? ts.tryCast(declaration.name, ts.isStringLiteral) : ts.getExternalModuleName(declaration); |
| 87472 | var moduleSymbol = resolveExternalModuleNameWorker(specifier, specifier, /*moduleNotFoundError*/ undefined); // TODO: GH#18217 |
| 87473 | if (!moduleSymbol) { |
| 87474 | return undefined; |
| 87475 | } |
| 87476 | return ts.getDeclarationOfKind(moduleSymbol, 305 /* SyntaxKind.SourceFile */); |
| 87477 | } |
| 87478 | function initializeTypeChecker() { |
| 87479 | // Bind all source files and propagate errors |
| 87480 | for (var _i = 0, _a = host.getSourceFiles(); _i < _a.length; _i++) { |
no test coverage detected
searching dependent graphs…