MCPcopy Index your code
hub / github.com/reactjs/react-rails / parseDoWhileStatement

Function parseDoWhileStatement

lib/assets/javascripts/JSXTransformer.js:7457–7482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7455 // 12.6 Iteration Statements
7456
7457 function parseDoWhileStatement() {
7458 var body, test, oldInIteration, marker = markerCreate();
7459
7460 expectKeyword('do');
7461
7462 oldInIteration = state.inIteration;
7463 state.inIteration = true;
7464
7465 body = parseStatement();
7466
7467 state.inIteration = oldInIteration;
7468
7469 expectKeyword('while');
7470
7471 expect('(');
7472
7473 test = parseExpression();
7474
7475 expect(')');
7476
7477 if (match(';')) {
7478 lex();
7479 }
7480
7481 return markerApply(marker, delegate.createDoWhileStatement(body, test));
7482 }
7483
7484 function parseWhileStatement() {
7485 var test, body, oldInIteration, marker = markerCreate();

Callers 1

parseStatementFunction · 0.85

Calls 8

markerCreateFunction · 0.85
expectKeywordFunction · 0.85
parseStatementFunction · 0.85
expectFunction · 0.85
parseExpressionFunction · 0.85
matchFunction · 0.85
lexFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected