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

Function peg$parseNonEmptyQuery

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

Source from the content-addressed store, hash-verified

2648 }
2649
2650 function peg$parseNonEmptyQuery() {
2651 let s0, s1, s2, s3;
2652
2653 s0 = peg$currPos;
2654 s1 = peg$parse_();
2655 s2 = peg$currPos;
2656 peg$silentFails++;
2657 s3 = peg$parseMATCH();
2658 if (s3 === peg$FAILED) {
2659 s3 = peg$parseOPTIONAL();
2660 if (s3 === peg$FAILED) {
2661 s3 = peg$parseWITH();
2662 if (s3 === peg$FAILED) {
2663 s3 = peg$parseUNWIND();
2664 if (s3 === peg$FAILED) {
2665 s3 = peg$parseCALL();
2666 if (s3 === peg$FAILED) {
2667 s3 = peg$parseFOREACH();
2668 if (s3 === peg$FAILED) {
2669 s3 = peg$parseMERGE();
2670 if (s3 === peg$FAILED) {
2671 s3 = peg$parseCREATE();
2672 if (s3 === peg$FAILED) {
2673 s3 = peg$parseSET();
2674 if (s3 === peg$FAILED) {
2675 s3 = peg$parseDELETE();
2676 if (s3 === peg$FAILED) {
2677 s3 = peg$parseREMOVE();
2678 if (s3 === peg$FAILED) {
2679 s3 = peg$parseRETURN();
2680 }
2681 }
2682 }
2683 }
2684 }
2685 }
2686 }
2687 }
2688 }
2689 }
2690 }
2691 peg$silentFails--;
2692 if (s3 !== peg$FAILED) {
2693 peg$currPos = s2;
2694 s2 = undefined;
2695 } else {
2696 s2 = peg$FAILED;
2697 }
2698 if (s2 !== peg$FAILED) {
2699 s3 = peg$parseQuery();
2700 if (s3 !== peg$FAILED) {
2701 peg$savedPos = s0;
2702 s0 = peg$f2(s3);
2703 } else {
2704 peg$currPos = s0;
2705 s0 = peg$FAILED;
2706 }
2707 } else {

Callers 1

Calls 15

peg$parse_Function · 0.85
peg$parseMATCHFunction · 0.85
peg$parseOPTIONALFunction · 0.85
peg$parseWITHFunction · 0.85
peg$parseUNWINDFunction · 0.85
peg$parseCALLFunction · 0.85
peg$parseFOREACHFunction · 0.85
peg$parseMERGEFunction · 0.85
peg$parseCREATEFunction · 0.85
peg$parseSETFunction · 0.85
peg$parseDELETEFunction · 0.85
peg$parseREMOVEFunction · 0.85

Tested by

no test coverage detected