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

Function peg$parseEdgeLabels

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

Source from the content-addressed store, hash-verified

7519 }
7520
7521 function peg$parseEdgeLabels() {
7522 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12;
7523
7524 s0 = peg$currPos;
7525 if (input.charCodeAt(peg$currPos) === 91) {
7526 s1 = peg$c20;
7527 peg$currPos++;
7528 } else {
7529 s1 = peg$FAILED;
7530 if (peg$silentFails === 0) { peg$fail(peg$e22); }
7531 }
7532 if (s1 !== peg$FAILED) {
7533 s2 = peg$parse_();
7534 s3 = peg$parseQuantifier();
7535 if (s3 !== peg$FAILED) {
7536 s4 = peg$parse_();
7537 s5 = peg$parsePropertyMap();
7538 if (s5 === peg$FAILED) {
7539 s5 = null;
7540 }
7541 s6 = peg$parse_();
7542 if (input.charCodeAt(peg$currPos) === 93) {
7543 s7 = peg$c21;
7544 peg$currPos++;
7545 } else {
7546 s7 = peg$FAILED;
7547 if (peg$silentFails === 0) { peg$fail(peg$e23); }
7548 }
7549 if (s7 !== peg$FAILED) {
7550 peg$savedPos = s0;
7551 s0 = peg$f122(s3, s5);
7552 } else {
7553 peg$currPos = s0;
7554 s0 = peg$FAILED;
7555 }
7556 } else {
7557 peg$currPos = s0;
7558 s0 = peg$FAILED;
7559 }
7560 } else {
7561 peg$currPos = s0;
7562 s0 = peg$FAILED;
7563 }
7564 if (s0 === peg$FAILED) {
7565 s0 = peg$currPos;
7566 if (input.charCodeAt(peg$currPos) === 91) {
7567 s1 = peg$c20;
7568 peg$currPos++;
7569 } else {
7570 s1 = peg$FAILED;
7571 if (peg$silentFails === 0) { peg$fail(peg$e22); }
7572 }
7573 if (s1 !== peg$FAILED) {
7574 s2 = peg$parse_();
7575 s3 = peg$parseEdgeVariable();
7576 if (s3 !== peg$FAILED) {
7577 s4 = peg$parse_();
7578 s5 = peg$parseQuantifier();

Callers 1

peg$parseEdgeDirectionFunction · 0.85

Calls 10

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseQuantifierFunction · 0.85
peg$parsePropertyMapFunction · 0.85
peg$f122Function · 0.85
peg$parseEdgeVariableFunction · 0.85
peg$f123Function · 0.85
peg$f124Function · 0.85
peg$f125Function · 0.85

Tested by

no test coverage detected