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

Function peg$parseIsLabeledCondition

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

Source from the content-addressed store, hash-verified

8639 }
8640
8641 function peg$parseIsLabeledCondition() {
8642 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
8643
8644 s0 = peg$currPos;
8645 s1 = peg$parseExpressionIdentifier();
8646 if (s1 !== peg$FAILED) {
8647 s2 = peg$parse_();
8648 s3 = peg$parseIS();
8649 if (s3 !== peg$FAILED) {
8650 s4 = peg$parse_();
8651 s5 = peg$parseNOT();
8652 if (s5 !== peg$FAILED) {
8653 s6 = peg$parse_();
8654 if (input.charCodeAt(peg$currPos) === 58) {
8655 s7 = peg$c3;
8656 peg$currPos++;
8657 } else {
8658 s7 = peg$FAILED;
8659 if (peg$silentFails === 0) { peg$fail(peg$e3); }
8660 }
8661 if (s7 !== peg$FAILED) {
8662 s8 = peg$parse_();
8663 s9 = peg$parseLabelOrExpression();
8664 if (s9 !== peg$FAILED) {
8665 peg$savedPos = s0;
8666 s0 = peg$f148(s1, s9);
8667 } else {
8668 peg$currPos = s0;
8669 s0 = peg$FAILED;
8670 }
8671 } else {
8672 peg$currPos = s0;
8673 s0 = peg$FAILED;
8674 }
8675 } else {
8676 peg$currPos = s0;
8677 s0 = peg$FAILED;
8678 }
8679 } else {
8680 peg$currPos = s0;
8681 s0 = peg$FAILED;
8682 }
8683 } else {
8684 peg$currPos = s0;
8685 s0 = peg$FAILED;
8686 }
8687 if (s0 === peg$FAILED) {
8688 s0 = peg$currPos;
8689 s1 = peg$parseExpressionIdentifier();
8690 if (s1 !== peg$FAILED) {
8691 s2 = peg$parse_();
8692 s3 = peg$parseIS();
8693 if (s3 !== peg$FAILED) {
8694 s4 = peg$parse_();
8695 if (input.charCodeAt(peg$currPos) === 58) {
8696 s5 = peg$c3;
8697 peg$currPos++;
8698 } else {

Callers 1

Calls 8

peg$parse_Function · 0.85
peg$parseISFunction · 0.85
peg$parseNOTFunction · 0.85
peg$failFunction · 0.85
peg$f148Function · 0.85
peg$f149Function · 0.85

Tested by

no test coverage detected