MCPcopy Create free account
hub / github.com/nodejs/node / convertCompilerOptionsForTelemetry

Function convertCompilerOptionsForTelemetry

test/fixtures/snapshot/typescript.js:42270–42281  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

42268 */
42269 /* @internal */
42270 function convertCompilerOptionsForTelemetry(opts) {
42271 var out = {};
42272 for (var key in opts) {
42273 if (opts.hasOwnProperty(key)) {
42274 var type = getOptionFromName(key);
42275 if (type !== undefined) { // Ignore unknown options
42276 out[key] = getOptionValueWithEmptyStrings(opts[key], type);
42277 }
42278 }
42279 }
42280 return out;
42281 }
42282 ts.convertCompilerOptionsForTelemetry = convertCompilerOptionsForTelemetry;
42283 function getOptionValueWithEmptyStrings(value, option) {
42284 switch (option.type) {

Callers

nothing calls this directly

Calls 3

getOptionFromNameFunction · 0.85
hasOwnPropertyMethod · 0.45

Tested by

no test coverage detected