MCPcopy Create free account
hub / github.com/estools/esquery / peg$parsehasSelector

Function peg$parsehasSelector

parser.js:891–926  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

889 }
890
891 function peg$parsehasSelector() {
892 var s0, s1, s2;
893
894 var key = peg$currPos * 32 + 6,
895 cached = peg$resultsCache[key];
896
897 if (cached) {
898 peg$currPos = cached.nextPos;
899
900 return cached.result;
901 }
902
903 s0 = peg$currPos;
904 s1 = peg$parsebinaryOp();
905 if (s1 === peg$FAILED) {
906 s1 = null;
907 }
908 if (s1 !== peg$FAILED) {
909 s2 = peg$parseselector();
910 if (s2 !== peg$FAILED) {
911 peg$savedPos = s0;
912 s1 = peg$c20(s1, s2);
913 s0 = s1;
914 } else {
915 peg$currPos = s0;
916 s0 = peg$FAILED;
917 }
918 } else {
919 peg$currPos = s0;
920 s0 = peg$FAILED;
921 }
922
923 peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
924
925 return s0;
926 }
927
928 function peg$parseselector() {
929 var s0, s1, s2, s3, s4, s5;

Callers 1

peg$parsehasSelectorsFunction · 0.85

Calls 3

peg$parsebinaryOpFunction · 0.85
peg$parseselectorFunction · 0.85
peg$c20Function · 0.85

Tested by

no test coverage detected