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

Function peg$parseNodeLabels

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

Source from the content-addressed store, hash-verified

6494 }
6495
6496 function peg$parseNodeLabels() {
6497 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
6498
6499 s0 = peg$currPos;
6500 if (input.charCodeAt(peg$currPos) === 58) {
6501 s1 = peg$c3;
6502 peg$currPos++;
6503 } else {
6504 s1 = peg$FAILED;
6505 if (peg$silentFails === 0) { peg$fail(peg$e3); }
6506 }
6507 if (s1 !== peg$FAILED) {
6508 s2 = peg$parse_();
6509 s3 = peg$parseLabelIdentifier();
6510 if (s3 !== peg$FAILED) {
6511 s4 = [];
6512 s5 = peg$currPos;
6513 s6 = peg$parse_();
6514 if (input.charCodeAt(peg$currPos) === 58) {
6515 s7 = peg$c3;
6516 peg$currPos++;
6517 } else {
6518 s7 = peg$FAILED;
6519 if (peg$silentFails === 0) { peg$fail(peg$e3); }
6520 }
6521 if (s7 !== peg$FAILED) {
6522 s8 = peg$parse_();
6523 s9 = peg$parseLabelIdentifier();
6524 if (s9 !== peg$FAILED) {
6525 s6 = [s6, s7, s8, s9];
6526 s5 = s6;
6527 } else {
6528 peg$currPos = s5;
6529 s5 = peg$FAILED;
6530 }
6531 } else {
6532 peg$currPos = s5;
6533 s5 = peg$FAILED;
6534 }
6535 if (s5 !== peg$FAILED) {
6536 while (s5 !== peg$FAILED) {
6537 s4.push(s5);
6538 s5 = peg$currPos;
6539 s6 = peg$parse_();
6540 if (input.charCodeAt(peg$currPos) === 58) {
6541 s7 = peg$c3;
6542 peg$currPos++;
6543 } else {
6544 s7 = peg$FAILED;
6545 if (peg$silentFails === 0) { peg$fail(peg$e3); }
6546 }
6547 if (s7 !== peg$FAILED) {
6548 s8 = peg$parse_();
6549 s9 = peg$parseLabelIdentifier();
6550 if (s9 !== peg$FAILED) {
6551 s6 = [s6, s7, s8, s9];
6552 s5 = s6;
6553 } else {

Callers 4

peg$parseCreateChainNodeFunction · 0.85
peg$parseNodePatternBodyFunction · 0.85
peg$parseNodePatternFunction · 0.85

Calls 7

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseLabelIdentifierFunction · 0.85
peg$f98Function · 0.85
peg$f99Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected