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

Function getPropertyAssignment

test/fixtures/snapshot/typescript.js:15806–15814  ·  view source on GitHub ↗
(objectLiteral, key, key2)

Source from the content-addressed store, hash-verified

15804 }
15805 ts.isThisTypePredicate = isThisTypePredicate;
15806 function getPropertyAssignment(objectLiteral, key, key2) {
15807 return objectLiteral.properties.filter(function (property) {
15808 if (property.kind === 296 /* SyntaxKind.PropertyAssignment */) {
15809 var propName = tryGetTextOfPropertyName(property.name);
15810 return key === propName || (!!key2 && key2 === propName);
15811 }
15812 return false;
15813 });
15814 }
15815 ts.getPropertyAssignment = getPropertyAssignment;
15816 function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
15817 return ts.firstDefined(getPropertyAssignment(objectLiteral, propKey), function (property) {

Callers 2

getTsConfigPropArrayFunction · 0.85

Calls 2

tryGetTextOfPropertyNameFunction · 0.85
filterMethod · 0.65

Tested by

no test coverage detected