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

Function isClassDerivedFromDeclaringClasses

test/fixtures/snapshot/typescript.js:67165–67168  ·  view source on GitHub ↗
(checkClass, prop, writing)

Source from the content-addressed store, hash-verified

67163 // Return true if the given class derives from each of the declaring classes of the protected
67164 // constituents of the given property.
67165 function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {
67166 return forEachProperty(prop, function (p) { return ts.getDeclarationModifierFlagsFromSymbol(p, writing) & 16 /* ModifierFlags.Protected */ ?
67167 !hasBaseType(checkClass, getDeclaringClass(p)) : false; }) ? undefined : checkClass;
67168 }
67169 // Return true if the given type is deeply nested. We consider this to be the case when structural type comparisons
67170 // for maxDepth or more occurrences or instantiations of the type have been recorded on the given stack. It is possible,
67171 // though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely

Callers 1

Calls 3

forEachPropertyFunction · 0.85
hasBaseTypeFunction · 0.85
getDeclaringClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…