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

Function getDeclaringClass

test/fixtures/snapshot/typescript.js:67141–67143  ·  view source on GitHub ↗
(prop)

Source from the content-addressed store, hash-verified

67139 }
67140 // Return the declaring class type of a property or undefined if property not declared in class
67141 function getDeclaringClass(prop) {
67142 return prop.parent && prop.parent.flags & 32 /* SymbolFlags.Class */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(prop)) : undefined;
67143 }
67144 // Return the inherited type of the given property or undefined if property doesn't exist in a base class.
67145 function getTypeOfPropertyInBaseClass(property) {
67146 var classType = getDeclaringClass(property);

Calls 2

getDeclaredTypeOfSymbolFunction · 0.85
getParentOfSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…