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

Function getDeprecatedSuggestionNode

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

Source from the content-addressed store, hash-verified

77127 }
77128 }
77129 function getDeprecatedSuggestionNode(node) {
77130 node = ts.skipParentheses(node);
77131 switch (node.kind) {
77132 case 208 /* SyntaxKind.CallExpression */:
77133 case 165 /* SyntaxKind.Decorator */:
77134 case 209 /* SyntaxKind.NewExpression */:
77135 return getDeprecatedSuggestionNode(node.expression);
77136 case 210 /* SyntaxKind.TaggedTemplateExpression */:
77137 return getDeprecatedSuggestionNode(node.tag);
77138 case 280 /* SyntaxKind.JsxOpeningElement */:
77139 case 279 /* SyntaxKind.JsxSelfClosingElement */:
77140 return getDeprecatedSuggestionNode(node.tagName);
77141 case 207 /* SyntaxKind.ElementAccessExpression */:
77142 return node.argumentExpression;
77143 case 206 /* SyntaxKind.PropertyAccessExpression */:
77144 return node.name;
77145 case 178 /* SyntaxKind.TypeReference */:
77146 var typeReference = node;
77147 return ts.isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference;
77148 default:
77149 return node;
77150 }
77151 }
77152 function isSymbolOrSymbolForCall(node) {
77153 if (!ts.isCallExpression(node))
77154 return false;

Callers 2

checkDeprecatedSignatureFunction · 0.85
checkTypeReferenceNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…