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

Function peg$parseExistsSubqueryCondition

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

Source from the content-addressed store, hash-verified

11702 }
11703
11704 function peg$parseExistsSubqueryCondition() {
11705 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
11706
11707 s0 = peg$currPos;
11708 s1 = peg$parseEXISTS();
11709 if (s1 !== peg$FAILED) {
11710 s2 = peg$parse_();
11711 if (input.charCodeAt(peg$currPos) === 123) {
11712 s3 = peg$c18;
11713 peg$currPos++;
11714 } else {
11715 s3 = peg$FAILED;
11716 if (peg$silentFails === 0) { peg$fail(peg$e20); }
11717 }
11718 if (s3 !== peg$FAILED) {
11719 s4 = peg$parse_();
11720 s5 = peg$parsePattern();
11721 if (s5 !== peg$FAILED) {
11722 s6 = peg$parse_();
11723 s7 = peg$currPos;
11724 s8 = peg$parseWHERE();
11725 if (s8 !== peg$FAILED) {
11726 s9 = peg$parse_();
11727 s10 = peg$parseOrCondition();
11728 if (s10 !== peg$FAILED) {
11729 s8 = [s8, s9, s10];
11730 s7 = s8;
11731 } else {
11732 peg$currPos = s7;
11733 s7 = peg$FAILED;
11734 }
11735 } else {
11736 peg$currPos = s7;
11737 s7 = peg$FAILED;
11738 }
11739 if (s7 === peg$FAILED) {
11740 s7 = null;
11741 }
11742 s8 = peg$parse_();
11743 if (input.charCodeAt(peg$currPos) === 125) {
11744 s9 = peg$c19;
11745 peg$currPos++;
11746 } else {
11747 s9 = peg$FAILED;
11748 if (peg$silentFails === 0) { peg$fail(peg$e21); }
11749 }
11750 if (s9 !== peg$FAILED) {
11751 peg$savedPos = s0;
11752 s0 = peg$f215(s5, s7);
11753 } else {
11754 peg$currPos = s0;
11755 s0 = peg$FAILED;
11756 }
11757 } else {
11758 peg$currPos = s0;
11759 s0 = peg$FAILED;
11760 }
11761 } else {

Callers 1

Calls 7

peg$parseEXISTSFunction · 0.85
peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$parsePatternFunction · 0.85
peg$parseWHEREFunction · 0.85
peg$parseOrConditionFunction · 0.85
peg$f215Function · 0.85

Tested by

no test coverage detected