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

Function peg$parseOFFSET

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

Source from the content-addressed store, hash-verified

14877 }
14878
14879 function peg$parseOFFSET() {
14880 let s0, s1, s2, s3;
14881
14882 s0 = peg$currPos;
14883 s1 = input.substr(peg$currPos, 6);
14884 if (s1.toLowerCase() === peg$c63) {
14885 peg$currPos += (6);
14886 } else {
14887 s1 = peg$FAILED;
14888 if (peg$silentFails === 0) { peg$fail(peg$e68); }
14889 }
14890 if (s1 !== peg$FAILED) {
14891 s2 = peg$currPos;
14892 peg$silentFails++;
14893 s3 = peg$parseIdentifierPart();
14894 peg$silentFails--;
14895 if (s3 === peg$FAILED) {
14896 s2 = undefined;
14897 } else {
14898 peg$currPos = s2;
14899 s2 = peg$FAILED;
14900 }
14901 if (s2 !== peg$FAILED) {
14902 s1 = [s1, s2];
14903 s0 = s1;
14904 } else {
14905 peg$currPos = s0;
14906 s0 = peg$FAILED;
14907 }
14908 } else {
14909 peg$currPos = s0;
14910 s0 = peg$FAILED;
14911 }
14912
14913 return s0;
14914 }
14915
14916 function peg$parseLIMIT() {
14917 let s0, s1, s2, s3;

Callers 2

peg$parseSkipClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected