MCPcopy Create free account
hub / github.com/codemix/graph / peg$parseWithClause

Function peg$parseWithClause

packages/graph/src/grammar.js:4433–4477  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4431 }
4432
4433 function peg$parseWithClause() {
4434 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11;
4435
4436 s0 = peg$currPos;
4437 s1 = peg$parseWITH();
4438 if (s1 !== peg$FAILED) {
4439 s2 = peg$parse_();
4440 s3 = peg$parseDISTINCT();
4441 if (s3 === peg$FAILED) {
4442 s3 = null;
4443 }
4444 s4 = peg$parse_();
4445 s5 = peg$parseWithItemList();
4446 if (s5 !== peg$FAILED) {
4447 s6 = peg$parse_();
4448 s7 = peg$parseOrderByClause();
4449 if (s7 === peg$FAILED) {
4450 s7 = null;
4451 }
4452 s8 = peg$parseSkipClause();
4453 if (s8 === peg$FAILED) {
4454 s8 = null;
4455 }
4456 s9 = peg$parseLimitClause();
4457 if (s9 === peg$FAILED) {
4458 s9 = null;
4459 }
4460 s10 = peg$parseWhereClause();
4461 if (s10 === peg$FAILED) {
4462 s10 = null;
4463 }
4464 s11 = peg$parse_();
4465 peg$savedPos = s0;
4466 s0 = peg$f49(s3, s5, s7, s8, s9, s10);
4467 } else {
4468 peg$currPos = s0;
4469 s0 = peg$FAILED;
4470 }
4471 } else {
4472 peg$currPos = s0;
4473 s0 = peg$FAILED;
4474 }
4475
4476 return s0;
4477 }
4478
4479 function peg$parseWithItemList() {
4480 let s0, s1, s2, s3, s4, s5, s6, s7;

Callers 1

Calls 9

peg$parseWITHFunction · 0.85
peg$parse_Function · 0.85
peg$parseDISTINCTFunction · 0.85
peg$parseWithItemListFunction · 0.85
peg$parseOrderByClauseFunction · 0.85
peg$parseSkipClauseFunction · 0.85
peg$parseLimitClauseFunction · 0.85
peg$parseWhereClauseFunction · 0.85
peg$f49Function · 0.85

Tested by

no test coverage detected