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

Function parseEntityName

test/fixtures/snapshot/typescript.js:33129–33143  ·  view source on GitHub ↗
(allowReservedWords, diagnosticMessage)

Source from the content-addressed store, hash-verified

33127 return createMissingList();
33128 }
33129 function parseEntityName(allowReservedWords, diagnosticMessage) {
33130 var pos = getNodePos();
33131 var entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage);
33132 var dotPos = getNodePos();
33133 while (parseOptional(24 /* SyntaxKind.DotToken */)) {
33134 if (token() === 29 /* SyntaxKind.LessThanToken */) {
33135 // the entity is part of a JSDoc-style generic, so record the trailing dot for later error reporting
33136 entity.jsdocDotPos = dotPos;
33137 break;
33138 }
33139 dotPos = getNodePos();
33140 entity = finishNode(factory.createQualifiedName(entity, parseRightSideOfDot(allowReservedWords, /* allowPrivateIdentifiers */ false)), pos);
33141 }
33142 return entity;
33143 }
33144 function createQualifiedName(entity, name) {
33145 return finishNode(factory.createQualifiedName(entity, name), entity.pos);
33146 }

Callers 6

parseIsolatedEntityNameFunction · 0.85
parseTypeQueryFunction · 0.85
parseModuleReferenceFunction · 0.85
parseJSDocNameReferenceFunction · 0.85
parseJSDocLinkFunction · 0.85

Calls 7

getNodePosFunction · 0.85
parseIdentifierNameFunction · 0.85
parseIdentifierFunction · 0.85
parseOptionalFunction · 0.85
finishNodeFunction · 0.85
parseRightSideOfDotFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…