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

Function peg$parseStringPredicateCondition

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

Source from the content-addressed store, hash-verified

8887 }
8888
8889 function peg$parseStringPredicateCondition() {
8890 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
8891
8892 s0 = peg$currPos;
8893 s1 = peg$parseExpressionIdentifier();
8894 if (s1 !== peg$FAILED) {
8895 if (input.charCodeAt(peg$currPos) === 46) {
8896 s2 = peg$c2;
8897 peg$currPos++;
8898 } else {
8899 s2 = peg$FAILED;
8900 if (peg$silentFails === 0) { peg$fail(peg$e2); }
8901 }
8902 if (s2 !== peg$FAILED) {
8903 s3 = peg$parsePropertyIdentifier();
8904 if (s3 !== peg$FAILED) {
8905 s4 = peg$parse_();
8906 s5 = peg$parseSTARTS();
8907 if (s5 !== peg$FAILED) {
8908 s6 = peg$parse_();
8909 s7 = peg$parseWITH();
8910 if (s7 !== peg$FAILED) {
8911 s8 = peg$parse_();
8912 s9 = peg$parseStringLiteral();
8913 if (s9 === peg$FAILED) {
8914 s9 = peg$parseNullLiteral();
8915 }
8916 if (s9 !== peg$FAILED) {
8917 peg$savedPos = s0;
8918 s0 = peg$f154(s1, s3, s9);
8919 } else {
8920 peg$currPos = s0;
8921 s0 = peg$FAILED;
8922 }
8923 } else {
8924 peg$currPos = s0;
8925 s0 = peg$FAILED;
8926 }
8927 } else {
8928 peg$currPos = s0;
8929 s0 = peg$FAILED;
8930 }
8931 } else {
8932 peg$currPos = s0;
8933 s0 = peg$FAILED;
8934 }
8935 } else {
8936 peg$currPos = s0;
8937 s0 = peg$FAILED;
8938 }
8939 } else {
8940 peg$currPos = s0;
8941 s0 = peg$FAILED;
8942 }
8943 if (s0 === peg$FAILED) {
8944 s0 = peg$currPos;
8945 s1 = peg$parseExpressionIdentifier();
8946 if (s1 !== peg$FAILED) {

Callers 1

Calls 13

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseSTARTSFunction · 0.85
peg$parseWITHFunction · 0.85
peg$parseStringLiteralFunction · 0.85
peg$parseNullLiteralFunction · 0.85
peg$f154Function · 0.85
peg$parseENDSFunction · 0.85
peg$f155Function · 0.85
peg$parseCONTAINSFunction · 0.85

Tested by

no test coverage detected