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

Function hasExpandoValueProperty

test/fixtures/snapshot/typescript.js:16428–16436  ·  view source on GitHub ↗
(node, isPrototypeAssignment)

Source from the content-addressed store, hash-verified

16426 }
16427 ts.getDeclaredExpandoInitializer = getDeclaredExpandoInitializer;
16428 function hasExpandoValueProperty(node, isPrototypeAssignment) {
16429 return ts.forEach(node.properties, function (p) {
16430 return ts.isPropertyAssignment(p) &&
16431 ts.isIdentifier(p.name) &&
16432 p.name.escapedText === "value" &&
16433 p.initializer &&
16434 getExpandoInitializer(p.initializer, isPrototypeAssignment);
16435 });
16436 }
16437 /**
16438 * Get the assignment 'initializer' -- the righthand side-- when the initializer is container-like (See getExpandoInitializer).
16439 * We treat the right hand side of assignments with container-like initializers as declarations.

Callers 1

Calls 2

getExpandoInitializerFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…