MCPcopy Create free account
hub / github.com/dchester/jsonpath / parseDoWhileStatement

Function parseDoWhileStatement

jsonpath.js:2779–2804  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2777 // 12.6 Iteration Statements
2778
2779 function parseDoWhileStatement() {
2780 var body, test, oldInIteration;
2781
2782 expectKeyword('do');
2783
2784 oldInIteration = state.inIteration;
2785 state.inIteration = true;
2786
2787 body = parseStatement();
2788
2789 state.inIteration = oldInIteration;
2790
2791 expectKeyword('while');
2792
2793 expect('(');
2794
2795 test = parseExpression();
2796
2797 expect(')');
2798
2799 if (match(';')) {
2800 lex();
2801 }
2802
2803 return delegate.createDoWhileStatement(body, test);
2804 }
2805
2806 function parseWhileStatement() {
2807 var test, body, oldInIteration;

Callers 1

parseStatementFunction · 0.85

Calls 6

expectKeywordFunction · 0.85
parseStatementFunction · 0.85
expectFunction · 0.85
parseExpressionFunction · 0.85
matchFunction · 0.85
lexFunction · 0.70

Tested by

no test coverage detected