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

Function findInheritedConstructorReferences

test/fixtures/snapshot/typescript.js:138433–138439  ·  view source on GitHub ↗
(classDeclaration, state)

Source from the content-addressed store, hash-verified

138431 return !!getClassConstructorSymbol(classDeclaration.symbol);
138432 }
138433 function findInheritedConstructorReferences(classDeclaration, state) {
138434 if (hasOwnConstructor(classDeclaration))
138435 return;
138436 var classSymbol = classDeclaration.symbol;
138437 var search = state.createSearch(/*location*/ undefined, classSymbol, /*comingFrom*/ undefined);
138438 getReferencesInContainerOrFiles(classSymbol, state, search);
138439 }
138440 function addImplementationReferences(refNode, addReference, state) {
138441 // Check if we found a function/propertyAssignment/method with an implementation or initializer
138442 if (ts.isDeclarationName(refNode) && isImplementation(refNode.parent)) {

Callers 1

addConstructorReferencesFunction · 0.85

Calls 2

hasOwnConstructorFunction · 0.85

Tested by

no test coverage detected