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

Function peg$parsePrimaryCondition

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

Source from the content-addressed store, hash-verified

8290 }
8291
8292 function peg$parsePrimaryCondition() {
8293 let s0, s1, s2, s3, s4, s5;
8294
8295 s0 = peg$parsePatternExistsCondition();
8296 if (s0 === peg$FAILED) {
8297 s0 = peg$currPos;
8298 if (input.charCodeAt(peg$currPos) === 40) {
8299 s1 = peg$c4;
8300 peg$currPos++;
8301 } else {
8302 s1 = peg$FAILED;
8303 if (peg$silentFails === 0) { peg$fail(peg$e4); }
8304 }
8305 if (s1 !== peg$FAILED) {
8306 s2 = peg$parse_();
8307 s3 = peg$parseOrCondition();
8308 if (s3 !== peg$FAILED) {
8309 s4 = peg$parse_();
8310 if (input.charCodeAt(peg$currPos) === 41) {
8311 s5 = peg$c5;
8312 peg$currPos++;
8313 } else {
8314 s5 = peg$FAILED;
8315 if (peg$silentFails === 0) { peg$fail(peg$e5); }
8316 }
8317 if (s5 !== peg$FAILED) {
8318 peg$savedPos = s0;
8319 s0 = peg$f141(s3);
8320 } else {
8321 peg$currPos = s0;
8322 s0 = peg$FAILED;
8323 }
8324 } else {
8325 peg$currPos = s0;
8326 s0 = peg$FAILED;
8327 }
8328 } else {
8329 peg$currPos = s0;
8330 s0 = peg$FAILED;
8331 }
8332 if (s0 === peg$FAILED) {
8333 s0 = peg$parseNotCondition();
8334 if (s0 === peg$FAILED) {
8335 s0 = peg$parseInCondition();
8336 if (s0 === peg$FAILED) {
8337 s0 = peg$parseIsLabeledCondition();
8338 if (s0 === peg$FAILED) {
8339 s0 = peg$parseIsNullCondition();
8340 if (s0 === peg$FAILED) {
8341 s0 = peg$parseGeneralIsNullCondition();
8342 if (s0 === peg$FAILED) {
8343 s0 = peg$parseStringPredicateCondition();
8344 if (s0 === peg$FAILED) {
8345 s0 = peg$parseRegexCondition();
8346 if (s0 === peg$FAILED) {
8347 s0 = peg$parseQuantifierCondition();
8348 if (s0 === peg$FAILED) {
8349 s0 = peg$parsePropertyCondition();

Callers 2

peg$parseAndConditionFunction · 0.85
peg$parseNotConditionFunction · 0.85

Calls 15

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseOrConditionFunction · 0.85
peg$f141Function · 0.85
peg$parseNotConditionFunction · 0.85
peg$parseInConditionFunction · 0.85
peg$parseIsNullConditionFunction · 0.85
peg$parseRegexConditionFunction · 0.85

Tested by

no test coverage detected