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

Function isPropertyInClassDerivedFrom

test/fixtures/snapshot/typescript.js:67152–67157  ·  view source on GitHub ↗
(prop, baseClass)

Source from the content-addressed store, hash-verified

67150 // Return true if some underlying source property is declared in a class that derives
67151 // from the given base class.
67152 function isPropertyInClassDerivedFrom(prop, baseClass) {
67153 return forEachProperty(prop, function (sp) {
67154 var sourceClass = getDeclaringClass(sp);
67155 return sourceClass ? hasBaseType(sourceClass, baseClass) : false;
67156 });
67157 }
67158 // Return true if source property is a valid override of protected parts of target property.
67159 function isValidOverrideOf(sourceProp, targetProp) {
67160 return !forEachProperty(targetProp, function (tp) { return ts.getDeclarationModifierFlagsFromSymbol(tp) & 16 /* ModifierFlags.Protected */ ?

Callers 1

isValidOverrideOfFunction · 0.85

Calls 3

forEachPropertyFunction · 0.85
getDeclaringClassFunction · 0.85
hasBaseTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…