MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / parseWhileStatement

Function parseWhileStatement

scripts/libs/esprima.js:3421–3440  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3419 }
3420
3421 function parseWhileStatement(node) {
3422 var test, body, oldInIteration;
3423
3424 expectKeyword('while');
3425
3426 expect('(');
3427
3428 test = parseExpression();
3429
3430 expect(')');
3431
3432 oldInIteration = state.inIteration;
3433 state.inIteration = true;
3434
3435 body = parseStatement();
3436
3437 state.inIteration = oldInIteration;
3438
3439 return node.finishWhileStatement(test, body);
3440 }
3441
3442 function parseForStatement(node) {
3443 var init, test, update, left, right, kind, declarations,

Callers 1

parseStatementFunction · 0.85

Calls 4

expectKeywordFunction · 0.85
expectFunction · 0.85
parseExpressionFunction · 0.85
parseStatementFunction · 0.85

Tested by

no test coverage detected