(location, moduleReferenceExpression, ignoreErrors)
| 51142 | } |
| 51143 | } |
| 51144 | function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) { |
| 51145 | var isClassic = ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.Classic; |
| 51146 | var errorMessage = isClassic ? |
| 51147 | ts.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option |
| 51148 | : ts.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; |
| 51149 | return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? undefined : errorMessage); |
| 51150 | } |
| 51151 | function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation) { |
| 51152 | if (isForAugmentation === void 0) { isForAugmentation = false; } |
| 51153 | return ts.isStringLiteralLike(moduleReferenceExpression) |
no test coverage detected
searching dependent graphs…