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

Function parseModuleBlock

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

Source from the content-addressed store, hash-verified

36973 return withJSDoc(finishNode(node, pos), hasJSDoc);
36974 }
36975 function parseModuleBlock() {
36976 var pos = getNodePos();
36977 var statements;
36978 if (parseExpected(18 /* SyntaxKind.OpenBraceToken */)) {
36979 statements = parseList(1 /* ParsingContext.BlockStatements */, parseStatement);
36980 parseExpected(19 /* SyntaxKind.CloseBraceToken */);
36981 }
36982 else {
36983 statements = createMissingList();
36984 }
36985 return finishNode(factory.createModuleBlock(statements), pos);
36986 }
36987 function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, decorators, modifiers, flags) {
36988 // If we are parsing a dotted namespace name, we want to
36989 // propagate the 'Namespace' flag across the names if set.

Calls 5

getNodePosFunction · 0.85
parseExpectedFunction · 0.85
parseListFunction · 0.85
createMissingListFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…