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

Function parseEnumMember

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

Source from the content-addressed store, hash-verified

36952 // ConstantEnumMemberSection, which starts at the beginning of an enum declaration
36953 // or any time an integer literal initializer is encountered.
36954 function parseEnumMember() {
36955 var pos = getNodePos();
36956 var hasJSDoc = hasPrecedingJSDocComment();
36957 var name = parsePropertyName();
36958 var initializer = allowInAnd(parseInitializer);
36959 return withJSDoc(finishNode(factory.createEnumMember(name, initializer), pos), hasJSDoc);
36960 }
36961 function parseEnumDeclaration(pos, hasJSDoc, decorators, modifiers) {
36962 parseExpected(92 /* SyntaxKind.EnumKeyword */);
36963 var name = parseIdentifier();

Callers

nothing calls this directly

Calls 6

getNodePosFunction · 0.85
hasPrecedingJSDocCommentFunction · 0.85
parsePropertyNameFunction · 0.85
allowInAndFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected