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

Function parseVariableStatement

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

Source from the content-addressed store, hash-verified

36545 return nextTokenIsIdentifier() && nextToken() === 21 /* SyntaxKind.CloseParenToken */;
36546 }
36547 function parseVariableStatement(pos, hasJSDoc, decorators, modifiers) {
36548 var declarationList = parseVariableDeclarationList(/*inForStatementInitializer*/ false);
36549 parseSemicolon();
36550 var node = factory.createVariableStatement(modifiers, declarationList);
36551 // Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.
36552 node.decorators = decorators;
36553 return withJSDoc(finishNode(node, pos), hasJSDoc);
36554 }
36555 function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
36556 var savedAwaitContext = inAwaitContext();
36557 var modifierFlags = ts.modifiersToFlags(modifiers);

Callers 2

parseStatementFunction · 0.85
parseDeclarationWorkerFunction · 0.85

Calls 4

parseSemicolonFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…