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

Function peg$parseRETURN

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

Source from the content-addressed store, hash-verified

13952 }
13953
13954 function peg$parseRETURN() {
13955 let s0, s1, s2, s3;
13956
13957 s0 = peg$currPos;
13958 s1 = input.substr(peg$currPos, 6);
13959 if (s1.toLowerCase() === peg$c38) {
13960 peg$currPos += (6);
13961 } else {
13962 s1 = peg$FAILED;
13963 if (peg$silentFails === 0) { peg$fail(peg$e43); }
13964 }
13965 if (s1 !== peg$FAILED) {
13966 s2 = peg$currPos;
13967 peg$silentFails++;
13968 s3 = peg$parseIdentifierPart();
13969 peg$silentFails--;
13970 if (s3 === peg$FAILED) {
13971 s2 = undefined;
13972 } else {
13973 peg$currPos = s2;
13974 s2 = peg$FAILED;
13975 }
13976 if (s2 !== peg$FAILED) {
13977 s1 = [s1, s2];
13978 s0 = s1;
13979 } else {
13980 peg$currPos = s0;
13981 s0 = peg$FAILED;
13982 }
13983 } else {
13984 peg$currPos = s0;
13985 s0 = peg$FAILED;
13986 }
13987
13988 return s0;
13989 }
13990
13991 function peg$parseDISTINCT() {
13992 let s0, s1, s2, s3;

Callers 3

peg$parseNonEmptyQueryFunction · 0.85
peg$parseReturnClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected