(file)
| 118535 | return ts.combinePaths(defaultLibraryPath, libFileName); |
| 118536 | } |
| 118537 | function processLibReferenceDirectives(file) { |
| 118538 | ts.forEach(file.libReferenceDirectives, function (libReference, index) { |
| 118539 | var libName = ts.toFileNameLowerCase(libReference.fileName); |
| 118540 | var libFileName = ts.libMap.get(libName); |
| 118541 | if (libFileName) { |
| 118542 | // we ignore any 'no-default-lib' reference set on this file. |
| 118543 | processRootFile(pathForLibFile(libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, }); |
| 118544 | } |
| 118545 | else { |
| 118546 | var unqualifiedLibName = ts.removeSuffix(ts.removePrefix(libName, "lib."), ".d.ts"); |
| 118547 | var suggestion = ts.getSpellingSuggestion(unqualifiedLibName, ts.libs, ts.identity); |
| 118548 | var diagnostic = suggestion ? ts.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : ts.Diagnostics.Cannot_find_lib_definition_for_0; |
| 118549 | (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({ |
| 118550 | kind: 0 /* FilePreprocessingDiagnosticsKind.FilePreprocessingReferencedDiagnostic */, |
| 118551 | reason: { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, }, |
| 118552 | diagnostic: diagnostic, |
| 118553 | args: [libName, suggestion] |
| 118554 | }); |
| 118555 | } |
| 118556 | }); |
| 118557 | } |
| 118558 | function getCanonicalFileName(fileName) { |
| 118559 | return host.getCanonicalFileName(fileName); |
| 118560 | } |
no test coverage detected
searching dependent graphs…