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

Function peg$parseLIMIT

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

Source from the content-addressed store, hash-verified

14914 }
14915
14916 function peg$parseLIMIT() {
14917 let s0, s1, s2, s3;
14918
14919 s0 = peg$currPos;
14920 s1 = input.substr(peg$currPos, 5);
14921 if (s1.toLowerCase() === peg$c64) {
14922 peg$currPos += (5);
14923 } else {
14924 s1 = peg$FAILED;
14925 if (peg$silentFails === 0) { peg$fail(peg$e69); }
14926 }
14927 if (s1 !== peg$FAILED) {
14928 s2 = peg$currPos;
14929 peg$silentFails++;
14930 s3 = peg$parseIdentifierPart();
14931 peg$silentFails--;
14932 if (s3 === peg$FAILED) {
14933 s2 = undefined;
14934 } else {
14935 peg$currPos = s2;
14936 s2 = peg$FAILED;
14937 }
14938 if (s2 !== peg$FAILED) {
14939 s1 = [s1, s2];
14940 s0 = s1;
14941 } else {
14942 peg$currPos = s0;
14943 s0 = peg$FAILED;
14944 }
14945 } else {
14946 peg$currPos = s0;
14947 s0 = peg$FAILED;
14948 }
14949
14950 return s0;
14951 }
14952
14953 function peg$parseAND() {
14954 let s0, s1, s2, s3;

Callers 2

peg$parseLimitClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected