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

Function getPropertyArrayElementValue

test/fixtures/snapshot/typescript.js:15816–15822  ·  view source on GitHub ↗
(objectLiteral, propKey, elementValue)

Source from the content-addressed store, hash-verified

15814 }
15815 ts.getPropertyAssignment = getPropertyAssignment;
15816 function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
15817 return ts.firstDefined(getPropertyAssignment(objectLiteral, propKey), function (property) {
15818 return ts.isArrayLiteralExpression(property.initializer) ?
15819 ts.find(property.initializer.elements, function (element) { return ts.isStringLiteral(element) && element.text === elementValue; }) :
15820 undefined;
15821 });
15822 }
15823 ts.getPropertyArrayElementValue = getPropertyArrayElementValue;
15824 function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
15825 if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {

Callers

nothing calls this directly

Calls 2

getPropertyAssignmentFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected