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

Function getOverwrittenDefaultOptions

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

Source from the content-addressed store, hash-verified

41276 return Array(paddingLength + 1).join(" ");
41277 }
41278 function getOverwrittenDefaultOptions() {
41279 var result = [];
41280 var tab = makePadding(2);
41281 commandOptionsWithoutBuild.forEach(function (cmd) {
41282 if (!compilerOptionsMap.has(cmd.name)) {
41283 return;
41284 }
41285 var newValue = compilerOptionsMap.get(cmd.name);
41286 var defaultValue = getDefaultValueForOption(cmd);
41287 if (newValue !== defaultValue) {
41288 result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
41289 }
41290 else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
41291 result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
41292 }
41293 });
41294 return result.join(newLine) + newLine;
41295 }
41296 }
41297 ts.getCompilerOptionsDiffValue = getCompilerOptionsDiffValue;
41298 /**

Callers 1

Calls 8

makePaddingFunction · 0.85
getDefaultValueForOptionFunction · 0.85
concatMethod · 0.80
forEachMethod · 0.65
hasMethod · 0.65
getMethod · 0.65
pushMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected