MCPcopy Index your code
hub / github.com/nodejs/node / getEnding

Function getEnding

test/fixtures/snapshot/typescript.js:121947–121955  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121945 ending: getEnding(),
121946 };
121947 function getEnding() {
121948 switch (importModuleSpecifierEnding) {
121949 case "minimal": return 0 /* Ending.Minimal */;
121950 case "index": return 1 /* Ending.Index */;
121951 case "js": return 2 /* Ending.JsExtension */;
121952 default: return usesJsExtensionOnImports(importingSourceFile) || isFormatRequiringExtensions(compilerOptions, importingSourceFile.path, host) ? 2 /* Ending.JsExtension */
121953 : ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeJs ? 1 /* Ending.Index */ : 0 /* Ending.Minimal */;
121954 }
121955 }
121956 }
121957 function getPreferencesForUpdate(compilerOptions, oldImportSpecifier, importingSourceFileName, host) {
121958 return {

Callers 1

getPreferencesFunction · 0.85

Calls 2

usesJsExtensionOnImportsFunction · 0.85

Tested by

no test coverage detected