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

Function peg$parsebinaryOp

parser.js:555–683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553 }
554
555 function peg$parsebinaryOp() {
556 var s0, s1, s2, s3;
557
558 var key = peg$currPos * 32 + 3,
559 cached = peg$resultsCache[key];
560
561 if (cached) {
562 peg$currPos = cached.nextPos;
563
564 return cached.result;
565 }
566
567 s0 = peg$currPos;
568 s1 = peg$parse_();
569 if (s1 !== peg$FAILED) {
570 if (input.charCodeAt(peg$currPos) === 62) {
571 s2 = peg$c7;
572 peg$currPos++;
573 } else {
574 s2 = peg$FAILED;
575 if (peg$silentFails === 0) { peg$fail(peg$c8); }
576 }
577 if (s2 !== peg$FAILED) {
578 s3 = peg$parse_();
579 if (s3 !== peg$FAILED) {
580 peg$savedPos = s0;
581 s1 = peg$c9();
582 s0 = s1;
583 } else {
584 peg$currPos = s0;
585 s0 = peg$FAILED;
586 }
587 } else {
588 peg$currPos = s0;
589 s0 = peg$FAILED;
590 }
591 } else {
592 peg$currPos = s0;
593 s0 = peg$FAILED;
594 }
595 if (s0 === peg$FAILED) {
596 s0 = peg$currPos;
597 s1 = peg$parse_();
598 if (s1 !== peg$FAILED) {
599 if (input.charCodeAt(peg$currPos) === 126) {
600 s2 = peg$c10;
601 peg$currPos++;
602 } else {
603 s2 = peg$FAILED;
604 if (peg$silentFails === 0) { peg$fail(peg$c11); }
605 }
606 if (s2 !== peg$FAILED) {
607 s3 = peg$parse_();
608 if (s3 !== peg$FAILED) {
609 peg$savedPos = s0;
610 s1 = peg$c12();
611 s0 = s1;
612 } else {

Callers 2

peg$parsehasSelectorFunction · 0.85
peg$parseselectorFunction · 0.85

Calls 6

peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$c9Function · 0.85
peg$c12Function · 0.85
peg$c15Function · 0.85
peg$c16Function · 0.85

Tested by

no test coverage detected