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

Function getClassConstructorSymbol

test/fixtures/snapshot/typescript.js:138408–138410  ·  view source on GitHub ↗
(classSymbol)

Source from the content-addressed store, hash-verified

138406 }
138407 }
138408 function getClassConstructorSymbol(classSymbol) {
138409 return classSymbol.members && classSymbol.members.get("__constructor" /* InternalSymbolName.Constructor */);
138410 }
138411 /** Find references to `super` in the constructor of an extending class. */
138412 function findSuperConstructorAccesses(classDeclaration, addNode) {
138413 var constructor = getClassConstructorSymbol(classDeclaration.symbol);

Callers 3

hasOwnConstructorFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected