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

Function parseFunctionBlockOrSemicolon

test/fixtures/snapshot/typescript.js:36426–36432  ·  view source on GitHub ↗
(flags, diagnosticMessage)

Source from the content-addressed store, hash-verified

36424 return !scanner.hasPrecedingLineBreak() && (isIdentifier() || token() === 10 /* SyntaxKind.StringLiteral */);
36425 }
36426 function parseFunctionBlockOrSemicolon(flags, diagnosticMessage) {
36427 if (token() !== 18 /* SyntaxKind.OpenBraceToken */ && canParseSemicolon()) {
36428 parseSemicolon();
36429 return;
36430 }
36431 return parseFunctionBlock(flags, diagnosticMessage);
36432 }
36433 // DECLARATIONS
36434 function parseArrayBindingElement() {
36435 var pos = getNodePos();

Callers 4

parseFunctionDeclarationFunction · 0.85
parseMethodDeclarationFunction · 0.85
parseAccessorDeclarationFunction · 0.85

Calls 4

canParseSemicolonFunction · 0.85
parseSemicolonFunction · 0.85
parseFunctionBlockFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…