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

Function parseStatementList

jsonpath.js:2625–2641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2623 // 12.1 Block
2624
2625 function parseStatementList() {
2626 var list = [],
2627 statement;
2628
2629 while (index < length) {
2630 if (match('}')) {
2631 break;
2632 }
2633 statement = parseSourceElement();
2634 if (typeof statement === 'undefined') {
2635 break;
2636 }
2637 list.push(statement);
2638 }
2639
2640 return list;
2641 }
2642
2643 function parseBlock() {
2644 var block, startToken;

Callers 1

parseBlockFunction · 0.85

Calls 2

matchFunction · 0.85
parseSourceElementFunction · 0.85

Tested by

no test coverage detected