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

Function createOptionNameMap

test/fixtures/snapshot/typescript.js:40443–40453  ·  view source on GitHub ↗
(optionDeclarations)

Source from the content-addressed store, hash-verified

40441 ];
40442 /*@internal*/
40443 function createOptionNameMap(optionDeclarations) {
40444 var optionsNameMap = new ts.Map();
40445 var shortOptionNames = new ts.Map();
40446 ts.forEach(optionDeclarations, function (option) {
40447 optionsNameMap.set(option.name.toLowerCase(), option);
40448 if (option.shortName) {
40449 shortOptionNames.set(option.shortName, option.name);
40450 }
40451 });
40452 return { optionsNameMap: optionsNameMap, shortOptionNames: shortOptionNames };
40453 }
40454 ts.createOptionNameMap = createOptionNameMap;
40455 var optionsNameMapCache;
40456 /* @internal */

Callers 3

getOptionsNameMapFunction · 0.85
getBuildOptionsNameMapFunction · 0.85
getWatchOptionsNameMapFunction · 0.85

Calls 2

forEachMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…