Returns 'true' is the namespace 'name' is re-exported from this module, and 'false' if it is only used locally.
(sourceFileLike, name, checker)
| 136492 | } |
| 136493 | /** Returns 'true' is the namespace 'name' is re-exported from this module, and 'false' if it is only used locally. */ |
| 136494 | function findNamespaceReExports(sourceFileLike, name, checker) { |
| 136495 | var namespaceImportSymbol = checker.getSymbolAtLocation(name); |
| 136496 | return !!forEachPossibleImportOrExportStatement(sourceFileLike, function (statement) { |
| 136497 | if (!ts.isExportDeclaration(statement)) |
| 136498 | return; |
| 136499 | var exportClause = statement.exportClause, moduleSpecifier = statement.moduleSpecifier; |
| 136500 | return !moduleSpecifier && exportClause && ts.isNamedExports(exportClause) && |
| 136501 | exportClause.elements.some(function (element) { return checker.getExportSpecifierLocalTargetSymbol(element) === namespaceImportSymbol; }); |
| 136502 | }); |
| 136503 | } |
| 136504 | function findModuleReferences(program, sourceFiles, searchModuleSymbol) { |
| 136505 | var refs = []; |
| 136506 | var checker = program.getTypeChecker(); |
no test coverage detected