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

Function parseJSDocFunctionType

test/fixtures/snapshot/typescript.js:33344–33354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33342 }
33343 }
33344 function parseJSDocFunctionType() {
33345 var pos = getNodePos();
33346 var hasJSDoc = hasPrecedingJSDocComment();
33347 if (lookAhead(nextTokenIsOpenParen)) {
33348 nextToken();
33349 var parameters = parseParameters(4 /* SignatureFlags.Type */ | 32 /* SignatureFlags.JSDoc */);
33350 var type = parseReturnType(58 /* SyntaxKind.ColonToken */, /*isType*/ false);
33351 return withJSDoc(finishNode(factory.createJSDocFunctionType(parameters, type), pos), hasJSDoc);
33352 }
33353 return finishNode(factory.createTypeReferenceNode(parseIdentifierName(), /*typeArguments*/ undefined), pos);
33354 }
33355 function parseJSDocParameter() {
33356 var pos = getNodePos();
33357 var name;

Callers 1

parseNonArrayTypeFunction · 0.85

Calls 9

getNodePosFunction · 0.85
hasPrecedingJSDocCommentFunction · 0.85
lookAheadFunction · 0.85
nextTokenFunction · 0.85
parseParametersFunction · 0.85
parseReturnTypeFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85
parseIdentifierNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…