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

Function peg$parseORDER

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

Source from the content-addressed store, hash-verified

14470 }
14471
14472 function peg$parseORDER() {
14473 let s0, s1, s2, s3;
14474
14475 s0 = peg$currPos;
14476 s1 = input.substr(peg$currPos, 5);
14477 if (s1.toLowerCase() === peg$c52) {
14478 peg$currPos += (5);
14479 } else {
14480 s1 = peg$FAILED;
14481 if (peg$silentFails === 0) { peg$fail(peg$e57); }
14482 }
14483 if (s1 !== peg$FAILED) {
14484 s2 = peg$currPos;
14485 peg$silentFails++;
14486 s3 = peg$parseIdentifierPart();
14487 peg$silentFails--;
14488 if (s3 === peg$FAILED) {
14489 s2 = undefined;
14490 } else {
14491 peg$currPos = s2;
14492 s2 = peg$FAILED;
14493 }
14494 if (s2 !== peg$FAILED) {
14495 s1 = [s1, s2];
14496 s0 = s1;
14497 } else {
14498 peg$currPos = s0;
14499 s0 = peg$FAILED;
14500 }
14501 } else {
14502 peg$currPos = s0;
14503 s0 = peg$FAILED;
14504 }
14505
14506 return s0;
14507 }
14508
14509 function peg$parseBY() {
14510 let s0, s1, s2, s3;

Callers 2

peg$parseOrderByClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected