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

Function getHoistedFunctionName

test/fixtures/snapshot/typescript.js:94515–94530  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

94513 return undefined;
94514 }
94515 function getHoistedFunctionName(node) {
94516 ts.Debug.assert(ts.isPrivateIdentifier(node.name));
94517 var info = accessPrivateIdentifier(node.name);
94518 ts.Debug.assert(info, "Undeclared private name for property declaration.");
94519 if (info.kind === "m" /* PrivateIdentifierKind.Method */) {
94520 return info.methodName;
94521 }
94522 if (info.kind === "a" /* PrivateIdentifierKind.Accessor */) {
94523 if (ts.isGetAccessor(node)) {
94524 return info.getterName;
94525 }
94526 if (ts.isSetAccessor(node)) {
94527 return info.setterName;
94528 }
94529 }
94530 }
94531 function visitPropertyDeclaration(node) {
94532 ts.Debug.assert(!ts.some(node.decorators));
94533 if (ts.isPrivateIdentifier(node.name)) {

Callers 1

Calls 2

accessPrivateIdentifierFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…