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

Function parseJSDocIdentifierName

test/fixtures/snapshot/typescript.js:38323–38335  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

38321 return entity;
38322 }
38323 function parseJSDocIdentifierName(message) {
38324 if (!ts.tokenIsIdentifierOrKeyword(token())) {
38325 return createMissingNode(79 /* SyntaxKind.Identifier */, /*reportAtCurrentPosition*/ !message, message || ts.Diagnostics.Identifier_expected);
38326 }
38327 identifierCount++;
38328 var pos = scanner.getTokenPos();
38329 var end = scanner.getTextPos();
38330 var originalKeywordKind = token();
38331 var text = internIdentifier(scanner.getTokenValue());
38332 var result = finishNode(factory.createIdentifier(text, /*typeArguments*/ undefined, originalKeywordKind), pos, end);
38333 nextTokenJSDoc();
38334 return result;
38335 }
38336 }
38337 })(JSDocParser = Parser.JSDocParser || (Parser.JSDocParser = {}));
38338 })(Parser || (Parser = {}));

Callers 6

parseTagFunction · 0.85
tryParseChildTagFunction · 0.85
parseJSDocEntityNameFunction · 0.85

Calls 5

createMissingNodeFunction · 0.85
internIdentifierFunction · 0.85
finishNodeFunction · 0.85
nextTokenJSDocFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…