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

Function parseLeftHandSideExpression

jsonpath.js:2318–2337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2316 }
2317
2318 function parseLeftHandSideExpression() {
2319 var expr, property, startToken;
2320 assert(state.allowIn, 'callee of new expression always allow in keyword.');
2321
2322 startToken = lookahead;
2323
2324 expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
2325
2326 while (match('.') || match('[')) {
2327 if (match('[')) {
2328 property = parseComputedMember();
2329 expr = delegate.createMemberExpression('[', expr, property);
2330 } else {
2331 property = parseNonComputedMember();
2332 expr = delegate.createMemberExpression('.', expr, property);
2333 }
2334 delegate.markEnd(expr, startToken);
2335 }
2336 return expr;
2337 }
2338
2339 // 11.3 Postfix Expressions
2340

Callers 1

parseNewExpressionFunction · 0.85

Calls 7

assertFunction · 0.85
matchKeywordFunction · 0.85
parseNewExpressionFunction · 0.85
parsePrimaryExpressionFunction · 0.85
matchFunction · 0.85
parseComputedMemberFunction · 0.85
parseNonComputedMemberFunction · 0.85

Tested by

no test coverage detected