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

Function resolveUntypedCall

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

Source from the content-addressed store, hash-verified

75249 return ts.isCallOrNewExpression(node) || ts.isTaggedTemplateExpression(node) || ts.isJsxOpeningLikeElement(node);
75250 }
75251 function resolveUntypedCall(node) {
75252 if (callLikeExpressionMayHaveTypeArguments(node)) {
75253 // Check type arguments even though we will give an error that untyped calls may not accept type arguments.
75254 // This gets us diagnostics for the type arguments and marks them as referenced.
75255 ts.forEach(node.typeArguments, checkSourceElement);
75256 }
75257 if (node.kind === 210 /* SyntaxKind.TaggedTemplateExpression */) {
75258 checkExpression(node.template);
75259 }
75260 else if (ts.isJsxOpeningLikeElement(node)) {
75261 checkExpression(node.attributes);
75262 }
75263 else if (node.kind !== 165 /* SyntaxKind.Decorator */) {
75264 ts.forEach(node.arguments, function (argument) {
75265 checkExpression(argument);
75266 });
75267 }
75268 return anySignature;
75269 }
75270 function resolveErrorCall(node) {
75271 resolveUntypedCall(node);
75272 return unknownSignature;

Callers 7

resolveErrorCallFunction · 0.85
resolveCallExpressionFunction · 0.85
resolveNewExpressionFunction · 0.85
resolveDecoratorFunction · 0.85
checkDeferredNodeFunction · 0.85

Calls 3

checkExpressionFunction · 0.70
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…