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

Function peg$parseReservedConditionWord

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

Source from the content-addressed store, hash-verified

8470 }
8471
8472 function peg$parseReservedConditionWord() {
8473 let s0, s1, s2, s3;
8474
8475 s0 = peg$currPos;
8476 s1 = peg$parseEXISTS();
8477 if (s1 === peg$FAILED) {
8478 s1 = peg$parseNOT();
8479 if (s1 === peg$FAILED) {
8480 s1 = peg$parseAND();
8481 if (s1 === peg$FAILED) {
8482 s1 = peg$parseOR();
8483 if (s1 === peg$FAILED) {
8484 s1 = peg$parseXOR();
8485 if (s1 === peg$FAILED) {
8486 s1 = peg$parseSTARTS();
8487 if (s1 === peg$FAILED) {
8488 s1 = peg$parseENDS();
8489 if (s1 === peg$FAILED) {
8490 s1 = peg$parseCONTAINS();
8491 if (s1 === peg$FAILED) {
8492 s1 = peg$parseALL();
8493 if (s1 === peg$FAILED) {
8494 s1 = peg$parseANY();
8495 if (s1 === peg$FAILED) {
8496 s1 = peg$parseNONE();
8497 if (s1 === peg$FAILED) {
8498 s1 = peg$parseSINGLE();
8499 }
8500 }
8501 }
8502 }
8503 }
8504 }
8505 }
8506 }
8507 }
8508 }
8509 }
8510 if (s1 !== peg$FAILED) {
8511 s2 = peg$currPos;
8512 peg$silentFails++;
8513 s3 = input.charAt(peg$currPos);
8514 if (peg$r1.test(s3)) {
8515 peg$currPos++;
8516 } else {
8517 s3 = peg$FAILED;
8518 if (peg$silentFails === 0) { peg$fail(peg$e13); }
8519 }
8520 peg$silentFails--;
8521 if (s3 === peg$FAILED) {
8522 s2 = undefined;
8523 } else {
8524 peg$currPos = s2;
8525 s2 = peg$FAILED;
8526 }
8527 if (s2 !== peg$FAILED) {
8528 s1 = [s1, s2];
8529 s0 = s1;

Callers 1

Calls 13

peg$parseEXISTSFunction · 0.85
peg$parseNOTFunction · 0.85
peg$parseANDFunction · 0.85
peg$parseORFunction · 0.85
peg$parseXORFunction · 0.85
peg$parseSTARTSFunction · 0.85
peg$parseENDSFunction · 0.85
peg$parseCONTAINSFunction · 0.85
peg$parseALLFunction · 0.85
peg$parseANYFunction · 0.85
peg$parseNONEFunction · 0.85
peg$parseSINGLEFunction · 0.85

Tested by

no test coverage detected