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

Function peg$parseSetAssignment

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

Source from the content-addressed store, hash-verified

5549 }
5550
5551 function peg$parseSetAssignment() {
5552 let s0, s1, s2, s3, s4, s5, s6, s7;
5553
5554 s0 = peg$currPos;
5555 s1 = peg$parseExpressionIdentifier();
5556 if (s1 !== peg$FAILED) {
5557 s2 = peg$parse_();
5558 if (input.substr(peg$currPos, 2) === peg$c12) {
5559 s3 = peg$c12;
5560 peg$currPos += 2;
5561 } else {
5562 s3 = peg$FAILED;
5563 if (peg$silentFails === 0) { peg$fail(peg$e14); }
5564 }
5565 if (s3 !== peg$FAILED) {
5566 s4 = peg$parse_();
5567 s5 = peg$parseSetMapValue();
5568 if (s5 !== peg$FAILED) {
5569 peg$savedPos = s0;
5570 s0 = peg$f75(s1, s5);
5571 } else {
5572 peg$currPos = s0;
5573 s0 = peg$FAILED;
5574 }
5575 } else {
5576 peg$currPos = s0;
5577 s0 = peg$FAILED;
5578 }
5579 } else {
5580 peg$currPos = s0;
5581 s0 = peg$FAILED;
5582 }
5583 if (s0 === peg$FAILED) {
5584 s0 = peg$currPos;
5585 s1 = peg$parseExpressionIdentifier();
5586 if (s1 !== peg$FAILED) {
5587 s2 = peg$parse_();
5588 if (input.charCodeAt(peg$currPos) === 61) {
5589 s3 = peg$c13;
5590 peg$currPos++;
5591 } else {
5592 s3 = peg$FAILED;
5593 if (peg$silentFails === 0) { peg$fail(peg$e15); }
5594 }
5595 if (s3 !== peg$FAILED) {
5596 s4 = peg$parse_();
5597 s5 = peg$parseSetMapValue();
5598 if (s5 !== peg$FAILED) {
5599 peg$savedPos = s0;
5600 s0 = peg$f76(s1, s5);
5601 } else {
5602 peg$currPos = s0;
5603 s0 = peg$FAILED;
5604 }
5605 } else {
5606 peg$currPos = s0;
5607 s0 = peg$FAILED;
5608 }

Callers 1

Calls 9

peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$parseSetMapValueFunction · 0.85
peg$f75Function · 0.85
peg$f76Function · 0.85
peg$parseSetValueFunction · 0.85
peg$f77Function · 0.85

Tested by

no test coverage detected