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

Function peg$parseOrderDirection

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

Source from the content-addressed store, hash-verified

13562 }
13563
13564 function peg$parseOrderDirection() {
13565 let s0, s1;
13566
13567 s0 = peg$currPos;
13568 s1 = peg$parseASC();
13569 if (s1 !== peg$FAILED) {
13570 peg$savedPos = s0;
13571 s1 = peg$f249();
13572 }
13573 s0 = s1;
13574 if (s0 === peg$FAILED) {
13575 s0 = peg$currPos;
13576 s1 = peg$parseASCENDING();
13577 if (s1 !== peg$FAILED) {
13578 peg$savedPos = s0;
13579 s1 = peg$f250();
13580 }
13581 s0 = s1;
13582 if (s0 === peg$FAILED) {
13583 s0 = peg$currPos;
13584 s1 = peg$parseDESC();
13585 if (s1 !== peg$FAILED) {
13586 peg$savedPos = s0;
13587 s1 = peg$f251();
13588 }
13589 s0 = s1;
13590 if (s0 === peg$FAILED) {
13591 s0 = peg$currPos;
13592 s1 = peg$parseDESCENDING();
13593 if (s1 !== peg$FAILED) {
13594 peg$savedPos = s0;
13595 s1 = peg$f252();
13596 }
13597 s0 = s1;
13598 }
13599 }
13600 }
13601
13602 return s0;
13603 }
13604
13605 function peg$parseNullsOrdering() {
13606 let s0, s1, s2, s3;

Callers 1

peg$parseOrderItemFunction · 0.85

Calls 8

peg$parseASCFunction · 0.85
peg$f249Function · 0.85
peg$parseASCENDINGFunction · 0.85
peg$f250Function · 0.85
peg$parseDESCFunction · 0.85
peg$f251Function · 0.85
peg$parseDESCENDINGFunction · 0.85
peg$f252Function · 0.85

Tested by

no test coverage detected