MCPcopy Index your code
hub / github.com/dchester/jsonpath / parseWithStatement

Function parseWithStatement

jsonpath.js:3034–3054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3032 // 12.10 The with statement
3033
3034 function parseWithStatement() {
3035 var object, body;
3036
3037 if (strict) {
3038 // TODO(ikarienator): Should we update the test cases instead?
3039 skipComment();
3040 throwErrorTolerant({}, Messages.StrictModeWith);
3041 }
3042
3043 expectKeyword('with');
3044
3045 expect('(');
3046
3047 object = parseExpression();
3048
3049 expect(')');
3050
3051 body = parseStatement();
3052
3053 return delegate.createWithStatement(object, body);
3054 }
3055
3056 // 12.10 The swith statement
3057

Callers 1

parseStatementFunction · 0.85

Calls 6

skipCommentFunction · 0.85
throwErrorTolerantFunction · 0.85
expectKeywordFunction · 0.85
expectFunction · 0.85
parseExpressionFunction · 0.85
parseStatementFunction · 0.85

Tested by

no test coverage detected