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

Function convertToOptionsWithAbsolutePaths

test/fixtures/snapshot/typescript.js:41389–41401  ·  view source on GitHub ↗
(options, toAbsolutePath)

Source from the content-addressed store, hash-verified

41387 ts.generateTSConfig = generateTSConfig;
41388 /* @internal */
41389 function convertToOptionsWithAbsolutePaths(options, toAbsolutePath) {
41390 var result = {};
41391 var optionsNameMap = getOptionsNameMap().optionsNameMap;
41392 for (var name in options) {
41393 if (ts.hasProperty(options, name)) {
41394 result[name] = convertToOptionValueWithAbsolutePaths(optionsNameMap.get(name.toLowerCase()), options[name], toAbsolutePath);
41395 }
41396 }
41397 if (result.configFilePath) {
41398 result.configFilePath = toAbsolutePath(result.configFilePath);
41399 }
41400 return result;
41401 }
41402 ts.convertToOptionsWithAbsolutePaths = convertToOptionsWithAbsolutePaths;
41403 function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) {
41404 if (option && !isNullOrUndefined(value)) {

Callers

nothing calls this directly

Calls 4

getOptionsNameMapFunction · 0.85
toAbsolutePathFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…