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

Function getJSExtensionForFile

test/fixtures/snapshot/typescript.js:122645–122648  ·  view source on GitHub ↗
(fileName, options)

Source from the content-addressed store, hash-verified

122643 }
122644 }
122645 function getJSExtensionForFile(fileName, options) {
122646 var _a;
122647 return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
122648 }
122649 function tryGetJSExtensionForFile(fileName, options) {
122650 var ext = ts.tryGetExtensionFromPath(fileName);
122651 switch (ext) {

Callers 1

Calls 3

tryGetJSExtensionForFileFunction · 0.85
concatMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…