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

Function updatePaths

test/fixtures/snapshot/typescript.js:139516–139524  ·  view source on GitHub ↗
(property)

Source from the content-addressed store, hash-verified

139514 }
139515 });
139516 function updatePaths(property) {
139517 var elements = ts.isArrayLiteralExpression(property.initializer) ? property.initializer.elements : [property.initializer];
139518 var foundExactMatch = false;
139519 for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
139520 var element = elements_1[_i];
139521 foundExactMatch = tryUpdateString(element) || foundExactMatch;
139522 }
139523 return foundExactMatch;
139524 }
139525 function tryUpdateString(element) {
139526 if (!ts.isStringLiteral(element))
139527 return false;

Callers 1

updateTsconfigFilesFunction · 0.85

Calls 1

tryUpdateStringFunction · 0.85

Tested by

no test coverage detected