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

Function checkDeprecatedSignature

test/fixtures/snapshot/typescript.js:77122–77128  ·  view source on GitHub ↗
(signature, node)

Source from the content-addressed store, hash-verified

77120 return returnType;
77121 }
77122 function checkDeprecatedSignature(signature, node) {
77123 if (signature.declaration && signature.declaration.flags & 268435456 /* NodeFlags.Deprecated */) {
77124 var suggestionNode = getDeprecatedSuggestionNode(node);
77125 var name = ts.tryGetPropertyAccessOrIdentifierToString(ts.getInvokedExpression(node));
77126 addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature));
77127 }
77128 }
77129 function getDeprecatedSuggestionNode(node) {
77130 node = ts.skipParentheses(node);
77131 switch (node.kind) {

Callers 4

checkCallExpressionFunction · 0.85
checkDecoratorFunction · 0.85

Calls 3

signatureToStringFunction · 0.85

Tested by

no test coverage detected