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

Function parseConstructorName

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

Source from the content-addressed store, hash-verified

36572 return withJSDoc(finishNode(node, pos), hasJSDoc);
36573 }
36574 function parseConstructorName() {
36575 if (token() === 134 /* SyntaxKind.ConstructorKeyword */) {
36576 return parseExpected(134 /* SyntaxKind.ConstructorKeyword */);
36577 }
36578 if (token() === 10 /* SyntaxKind.StringLiteral */ && lookAhead(nextToken) === 20 /* SyntaxKind.OpenParenToken */) {
36579 return tryParse(function () {
36580 var literalNode = parseLiteralNode();
36581 return literalNode.text === "constructor" ? literalNode : undefined;
36582 });
36583 }
36584 }
36585 function tryParseConstructorDeclaration(pos, hasJSDoc, decorators, modifiers) {
36586 return tryParse(function () {
36587 if (parseConstructorName()) {

Callers 1

Calls 5

parseExpectedFunction · 0.85
lookAheadFunction · 0.85
tryParseFunction · 0.85
parseLiteralNodeFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…