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

Function parseWhileStatement

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

Source from the content-addressed store, hash-verified

35905 return withJSDoc(finishNode(factory.createDoStatement(statement, expression), pos), hasJSDoc);
35906 }
35907 function parseWhileStatement() {
35908 var pos = getNodePos();
35909 var hasJSDoc = hasPrecedingJSDocComment();
35910 parseExpected(115 /* SyntaxKind.WhileKeyword */);
35911 var openParenPosition = scanner.getTokenPos();
35912 var openParenParsed = parseExpected(20 /* SyntaxKind.OpenParenToken */);
35913 var expression = allowInAnd(parseExpression);
35914 parseExpectedMatchingBrackets(20 /* SyntaxKind.OpenParenToken */, 21 /* SyntaxKind.CloseParenToken */, openParenParsed, openParenPosition);
35915 var statement = parseStatement();
35916 return withJSDoc(finishNode(factory.createWhileStatement(expression, statement), pos), hasJSDoc);
35917 }
35918 function parseForOrForInOrForOfStatement() {
35919 var pos = getNodePos();
35920 var hasJSDoc = hasPrecedingJSDocComment();

Callers 1

parseStatementFunction · 0.85

Calls 8

getNodePosFunction · 0.85
hasPrecedingJSDocCommentFunction · 0.85
parseExpectedFunction · 0.85
allowInAndFunction · 0.85
parseStatementFunction · 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…