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

Function getDiagnosticForCallNode

test/fixtures/snapshot/typescript.js:75927–75935  ·  view source on GitHub ↗
(node, message, arg0, arg1, arg2, arg3)

Source from the content-addressed store, hash-verified

75925 return { start: start, length: length, sourceFile: sourceFile };
75926 }
75927 function getDiagnosticForCallNode(node, message, arg0, arg1, arg2, arg3) {
75928 if (ts.isCallExpression(node)) {
75929 var _a = getDiagnosticSpanForCallNode(node), sourceFile = _a.sourceFile, start = _a.start, length_6 = _a.length;
75930 return ts.createFileDiagnostic(sourceFile, start, length_6, message, arg0, arg1, arg2, arg3);
75931 }
75932 else {
75933 return ts.createDiagnosticForNode(node, message, arg0, arg1, arg2, arg3);
75934 }
75935 }
75936 function isPromiseResolveArityError(node) {
75937 if (!ts.isCallExpression(node) || !ts.isIdentifier(node.expression))
75938 return false;

Callers 2

getArgumentArityErrorFunction · 0.85
resolveCallFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…