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

Function isJSDocTypeReference

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

Source from the content-addressed store, hash-verified

60511 return constraints ? getSubstitutionType(type, getIntersectionType(ts.append(constraints, type))) : type;
60512 }
60513 function isJSDocTypeReference(node) {
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);

Callers 4

getTypeReferenceTypeFunction · 0.85
getTypeFromTypeReferenceFunction · 0.85
mayResolveTypeAliasFunction · 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…