(importDeclaration, name, isReExport, alreadyAddedDirect)
| 136327 | }); |
| 136328 | } |
| 136329 | function handleNamespaceImport(importDeclaration, name, isReExport, alreadyAddedDirect) { |
| 136330 | if (exportKind === 2 /* ExportKind.ExportEquals */) { |
| 136331 | // This is a direct import, not import-as-namespace. |
| 136332 | if (!alreadyAddedDirect) |
| 136333 | directImports.push(importDeclaration); |
| 136334 | } |
| 136335 | else if (!isAvailableThroughGlobal) { |
| 136336 | var sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration); |
| 136337 | ts.Debug.assert(sourceFileLike.kind === 305 /* SyntaxKind.SourceFile */ || sourceFileLike.kind === 261 /* SyntaxKind.ModuleDeclaration */); |
| 136338 | if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) { |
| 136339 | addIndirectUser(sourceFileLike, /** addTransitiveDependencies */ true); |
| 136340 | } |
| 136341 | else { |
| 136342 | addIndirectUser(sourceFileLike); |
| 136343 | } |
| 136344 | } |
| 136345 | } |
| 136346 | /** Adds a module and all of its transitive dependencies as possible indirect users. */ |
| 136347 | function addIndirectUser(sourceFileLike, addTransitiveDependencies) { |
| 136348 | if (addTransitiveDependencies === void 0) { addTransitiveDependencies = false; } |
no test coverage detected