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

Function parseNamespaceExportDeclaration

test/fixtures/snapshot/typescript.js:37050–37060  ·  view source on GitHub ↗
(pos, hasJSDoc, decorators, modifiers)

Source from the content-addressed store, hash-verified

37048 return nextToken() === 43 /* SyntaxKind.SlashToken */;
37049 }
37050 function parseNamespaceExportDeclaration(pos, hasJSDoc, decorators, modifiers) {
37051 parseExpected(127 /* SyntaxKind.AsKeyword */);
37052 parseExpected(142 /* SyntaxKind.NamespaceKeyword */);
37053 var name = parseIdentifier();
37054 parseSemicolon();
37055 var node = factory.createNamespaceExportDeclaration(name);
37056 // NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker
37057 node.decorators = decorators;
37058 node.modifiers = modifiers;
37059 return withJSDoc(finishNode(node, pos), hasJSDoc);
37060 }
37061 function parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers) {
37062 parseExpected(100 /* SyntaxKind.ImportKeyword */);
37063 var afterImportPos = scanner.getStartPos();

Callers 1

parseDeclarationWorkerFunction · 0.85

Calls 5

parseExpectedFunction · 0.85
parseIdentifierFunction · 0.85
parseSemicolonFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected