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

Function convertToReusableCompilerOptionValue

test/fixtures/snapshot/typescript.js:120690–120703  ·  view source on GitHub ↗
(option, value, relativeToBuildInfo)

Source from the content-addressed store, hash-verified

120688 return result;
120689 }
120690 function convertToReusableCompilerOptionValue(option, value, relativeToBuildInfo) {
120691 if (option) {
120692 if (option.type === "list") {
120693 var values = value;
120694 if (option.element.isFilePath && values.length) {
120695 return values.map(relativeToBuildInfo);
120696 }
120697 }
120698 else if (option.isFilePath) {
120699 return relativeToBuildInfo(value);
120700 }
120701 }
120702 return value;
120703 }
120704 function convertToReusableDiagnostics(diagnostics, relativeToBuildInfo) {
120705 ts.Debug.assert(!!diagnostics.length);
120706 return diagnostics.map(function (diagnostic) {

Calls 2

relativeToBuildInfoFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…