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

Function peg$parseWITH

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

Source from the content-addressed store, hash-verified

15395 }
15396
15397 function peg$parseWITH() {
15398 let s0, s1, s2, s3;
15399
15400 s0 = peg$currPos;
15401 s1 = input.substr(peg$currPos, 4);
15402 if (s1.toLowerCase() === peg$c77) {
15403 peg$currPos += (4);
15404 } else {
15405 s1 = peg$FAILED;
15406 if (peg$silentFails === 0) { peg$fail(peg$e82); }
15407 }
15408 if (s1 !== peg$FAILED) {
15409 s2 = peg$currPos;
15410 peg$silentFails++;
15411 s3 = peg$parseIdentifierPart();
15412 peg$silentFails--;
15413 if (s3 === peg$FAILED) {
15414 s2 = undefined;
15415 } else {
15416 peg$currPos = s2;
15417 s2 = peg$FAILED;
15418 }
15419 if (s2 !== peg$FAILED) {
15420 s1 = [s1, s2];
15421 s0 = s1;
15422 } else {
15423 peg$currPos = s0;
15424 s0 = peg$FAILED;
15425 }
15426 } else {
15427 peg$currPos = s0;
15428 s0 = peg$FAILED;
15429 }
15430
15431 return s0;
15432 }
15433
15434 function peg$parseCONTAINS() {
15435 let s0, s1, s2, s3;

Callers 4

peg$parseNonEmptyQueryFunction · 0.85
peg$parseWithClauseFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected