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

Function shouldEmitFunctionProperties

test/fixtures/snapshot/typescript.js:108534–108541  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

108532 }
108533 // If the ExpandoFunctionDeclaration have multiple overloads, then we only need to emit properties for the last one.
108534 function shouldEmitFunctionProperties(input) {
108535 var _a;
108536 if (input.body) {
108537 return true;
108538 }
108539 var overloadSignatures = (_a = input.symbol.declarations) === null || _a === void 0 ? void 0 : _a.filter(function (decl) { return ts.isFunctionDeclaration(decl) && !decl.body; });
108540 return !overloadSignatures || overloadSignatures.indexOf(input) === overloadSignatures.length - 1;
108541 }
108542 function getBindingNameVisible(elem) {
108543 if (ts.isOmittedExpression(elem)) {
108544 return false;

Callers 1

Calls 2

filterMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…