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

Function peg$parsehasSelectors

parser.js:685–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

683 }
684
685 function peg$parsehasSelectors() {
686 var s0, s1, s2, s3, s4, s5, s6, s7;
687
688 var key = peg$currPos * 32 + 4,
689 cached = peg$resultsCache[key];
690
691 if (cached) {
692 peg$currPos = cached.nextPos;
693
694 return cached.result;
695 }
696
697 s0 = peg$currPos;
698 s1 = peg$parsehasSelector();
699 if (s1 !== peg$FAILED) {
700 s2 = [];
701 s3 = peg$currPos;
702 s4 = peg$parse_();
703 if (s4 !== peg$FAILED) {
704 if (input.charCodeAt(peg$currPos) === 44) {
705 s5 = peg$c17;
706 peg$currPos++;
707 } else {
708 s5 = peg$FAILED;
709 if (peg$silentFails === 0) { peg$fail(peg$c18); }
710 }
711 if (s5 !== peg$FAILED) {
712 s6 = peg$parse_();
713 if (s6 !== peg$FAILED) {
714 s7 = peg$parsehasSelector();
715 if (s7 !== peg$FAILED) {
716 s4 = [s4, s5, s6, s7];
717 s3 = s4;
718 } else {
719 peg$currPos = s3;
720 s3 = peg$FAILED;
721 }
722 } else {
723 peg$currPos = s3;
724 s3 = peg$FAILED;
725 }
726 } else {
727 peg$currPos = s3;
728 s3 = peg$FAILED;
729 }
730 } else {
731 peg$currPos = s3;
732 s3 = peg$FAILED;
733 }
734 while (s3 !== peg$FAILED) {
735 s2.push(s3);
736 s3 = peg$currPos;
737 s4 = peg$parse_();
738 if (s4 !== peg$FAILED) {
739 if (input.charCodeAt(peg$currPos) === 44) {
740 s5 = peg$c17;
741 peg$currPos++;
742 } else {

Callers 1

peg$parsehasFunction · 0.85

Calls 4

peg$parsehasSelectorFunction · 0.85
peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$c19Function · 0.85

Tested by

no test coverage detected