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

Function peg$parseBY

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

Source from the content-addressed store, hash-verified

14507 }
14508
14509 function peg$parseBY() {
14510 let s0, s1, s2, s3;
14511
14512 s0 = peg$currPos;
14513 s1 = input.substr(peg$currPos, 2);
14514 if (s1.toLowerCase() === peg$c53) {
14515 peg$currPos += (2);
14516 } else {
14517 s1 = peg$FAILED;
14518 if (peg$silentFails === 0) { peg$fail(peg$e58); }
14519 }
14520 if (s1 !== peg$FAILED) {
14521 s2 = peg$currPos;
14522 peg$silentFails++;
14523 s3 = peg$parseIdentifierPart();
14524 peg$silentFails--;
14525 if (s3 === peg$FAILED) {
14526 s2 = undefined;
14527 } else {
14528 peg$currPos = s2;
14529 s2 = peg$FAILED;
14530 }
14531 if (s2 !== peg$FAILED) {
14532 s1 = [s1, s2];
14533 s0 = s1;
14534 } else {
14535 peg$currPos = s0;
14536 s0 = peg$FAILED;
14537 }
14538 } else {
14539 peg$currPos = s0;
14540 s0 = peg$FAILED;
14541 }
14542
14543 return s0;
14544 }
14545
14546 function peg$parseGROUP() {
14547 let s0, s1, s2, s3;

Callers 3

peg$parseOrderByClauseFunction · 0.85
peg$parseGroupByClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected