MCPcopy Create free account
hub / github.com/nodejs/node / isValidOverrideOf

Function isValidOverrideOf

test/fixtures/snapshot/typescript.js:67159–67162  ·  view source on GitHub ↗
(sourceProp, targetProp)

Source from the content-addressed store, hash-verified

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 */ ?
67161 !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false; });
67162 }
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) {

Callers 1

propertyRelatedToFunction · 0.85

Calls 3

forEachPropertyFunction · 0.85
getDeclaringClassFunction · 0.85

Tested by

no test coverage detected