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

Function peg$parseSetValue

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

Source from the content-addressed store, hash-verified

5676 }
5677
5678 function peg$parseSetValue() {
5679 let s0, s1, s2, s3;
5680
5681 s0 = peg$parsePropertyListLiteral();
5682 if (s0 === peg$FAILED) {
5683 s0 = peg$parseNestedPropertyMap();
5684 if (s0 === peg$FAILED) {
5685 s0 = peg$parseLiteral();
5686 if (s0 === peg$FAILED) {
5687 s0 = peg$parseParameterRef();
5688 if (s0 === peg$FAILED) {
5689 s0 = peg$currPos;
5690 s1 = peg$parseExpressionIdentifier();
5691 if (s1 !== peg$FAILED) {
5692 if (input.charCodeAt(peg$currPos) === 46) {
5693 s2 = peg$c2;
5694 peg$currPos++;
5695 } else {
5696 s2 = peg$FAILED;
5697 if (peg$silentFails === 0) { peg$fail(peg$e2); }
5698 }
5699 if (s2 !== peg$FAILED) {
5700 s3 = peg$parsePropertyIdentifier();
5701 if (s3 !== peg$FAILED) {
5702 peg$savedPos = s0;
5703 s0 = peg$f78(s1, s3);
5704 } else {
5705 peg$currPos = s0;
5706 s0 = peg$FAILED;
5707 }
5708 } else {
5709 peg$currPos = s0;
5710 s0 = peg$FAILED;
5711 }
5712 } else {
5713 peg$currPos = s0;
5714 s0 = peg$FAILED;
5715 }
5716 if (s0 === peg$FAILED) {
5717 s0 = peg$currPos;
5718 s1 = peg$parseExpressionIdentifier();
5719 if (s1 !== peg$FAILED) {
5720 peg$savedPos = s0;
5721 s1 = peg$f79(s1);
5722 }
5723 s0 = s1;
5724 }
5725 }
5726 }
5727 }
5728 }
5729
5730 return s0;
5731 }
5732
5733 function peg$parseParameterRef() {
5734 let s0, s1, s2;

Callers 1

peg$parseSetAssignmentFunction · 0.85

Calls 9

peg$parseLiteralFunction · 0.85
peg$parseParameterRefFunction · 0.85
peg$failFunction · 0.85
peg$f78Function · 0.85
peg$f79Function · 0.85

Tested by

no test coverage detected