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

Function checkNoTypeArguments

test/fixtures/snapshot/typescript.js:60516–60522  ·  view source on GitHub ↗
(node, symbol)

Source from the content-addressed store, hash-verified

60514 return !!(node.flags & 8388608 /* NodeFlags.JSDoc */) && (node.kind === 178 /* SyntaxKind.TypeReference */ || node.kind === 200 /* SyntaxKind.ImportType */);
60515 }
60516 function checkNoTypeArguments(node, symbol) {
60517 if (node.typeArguments) {
60518 error(node, ts.Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? ts.declarationNameToString(node.typeName) : anon);
60519 return false;
60520 }
60521 return true;
60522 }
60523 function getIntendedTypeFromJSDocTypeReference(node) {
60524 if (ts.isIdentifier(node.typeName)) {
60525 var typeArgs = node.typeArguments;

Calls 2

symbolToStringFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…