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

Function parseWhileStatement

jsonpath.js:2806–2825  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2804 }
2805
2806 function parseWhileStatement() {
2807 var test, body, oldInIteration;
2808
2809 expectKeyword('while');
2810
2811 expect('(');
2812
2813 test = parseExpression();
2814
2815 expect(')');
2816
2817 oldInIteration = state.inIteration;
2818 state.inIteration = true;
2819
2820 body = parseStatement();
2821
2822 state.inIteration = oldInIteration;
2823
2824 return delegate.createWhileStatement(test, body);
2825 }
2826
2827 function parseForVariableDeclaration() {
2828 var token, declarations, startToken;

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