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

Function getSourceRoot

test/fixtures/snapshot/typescript.js:110472–110477  ·  view source on GitHub ↗
(mapOptions)

Source from the content-addressed store, hash-verified

110470 && (sourceFileOrBundle.kind !== 305 /* SyntaxKind.SourceFile */ || !ts.fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Extension.Json */));
110471 }
110472 function getSourceRoot(mapOptions) {
110473 // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the
110474 // relative paths of the sources list in the sourcemap
110475 var sourceRoot = ts.normalizeSlashes(mapOptions.sourceRoot || "");
110476 return sourceRoot ? ts.ensureTrailingDirectorySeparator(sourceRoot) : sourceRoot;
110477 }
110478 function getSourceMapDirectory(mapOptions, filePath, sourceFile) {
110479 if (mapOptions.sourceRoot)
110480 return host.getCommonSourceDirectory();

Callers 1

printSourceFileOrBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected