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

Function getAssignedClassSymbol

test/fixtures/snapshot/typescript.js:76996–77002  ·  view source on GitHub ↗
(decl)

Source from the content-addressed store, hash-verified

76994 }
76995 }
76996 function getAssignedClassSymbol(decl) {
76997 var _a;
76998 var assignmentSymbol = decl && getSymbolOfExpando(decl, /*allowDeclaration*/ true);
76999 var prototype = (_a = assignmentSymbol === null || assignmentSymbol === void 0 ? void 0 : assignmentSymbol.exports) === null || _a === void 0 ? void 0 : _a.get("prototype");
77000 var init = (prototype === null || prototype === void 0 ? void 0 : prototype.valueDeclaration) && getAssignedJSPrototype(prototype.valueDeclaration);
77001 return init ? getSymbolOfNode(init) : undefined;
77002 }
77003 function getSymbolOfExpando(node, allowDeclaration) {
77004 if (!node.parent) {
77005 return undefined;

Callers 1

Calls 4

getSymbolOfExpandoFunction · 0.85
getAssignedJSPrototypeFunction · 0.85
getSymbolOfNodeFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…