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

Function getTsConfigPropArrayElementValue

test/fixtures/snapshot/typescript.js:15831–15837  ·  view source on GitHub ↗
(tsConfigSourceFile, propKey, elementValue)

Source from the content-addressed store, hash-verified

15829 }
15830 ts.getTsConfigObjectLiteralExpression = getTsConfigObjectLiteralExpression;
15831 function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) {
15832 return ts.firstDefined(getTsConfigPropArray(tsConfigSourceFile, propKey), function (property) {
15833 return ts.isArrayLiteralExpression(property.initializer) ?
15834 ts.find(property.initializer.elements, function (element) { return ts.isStringLiteral(element) && element.text === elementValue; }) :
15835 undefined;
15836 });
15837 }
15838 ts.getTsConfigPropArrayElementValue = getTsConfigPropArrayElementValue;
15839 function getTsConfigPropArray(tsConfigSourceFile, propKey) {
15840 var jsonObjectLiteral = getTsConfigObjectLiteralExpression(tsConfigSourceFile);

Callers

nothing calls this directly

Calls 2

getTsConfigPropArrayFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected