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

Function peg$parseParameterRef

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

Source from the content-addressed store, hash-verified

5731 }
5732
5733 function peg$parseParameterRef() {
5734 let s0, s1, s2;
5735
5736 s0 = peg$currPos;
5737 if (input.charCodeAt(peg$currPos) === 36) {
5738 s1 = peg$c14;
5739 peg$currPos++;
5740 } else {
5741 s1 = peg$FAILED;
5742 if (peg$silentFails === 0) { peg$fail(peg$e16); }
5743 }
5744 if (s1 !== peg$FAILED) {
5745 s2 = peg$parseParameterIdentifier();
5746 if (s2 !== peg$FAILED) {
5747 peg$savedPos = s0;
5748 s0 = peg$f80(s2);
5749 } else {
5750 peg$currPos = s0;
5751 s0 = peg$FAILED;
5752 }
5753 } else {
5754 peg$currPos = s0;
5755 s0 = peg$FAILED;
5756 }
5757
5758 return s0;
5759 }
5760
5761 function peg$parseParameterIdentifier() {
5762 let s0, s1, s2, s3;

Callers 5

peg$parseSetMapValueFunction · 0.85
peg$parseSetValueFunction · 0.85
peg$parsePropertyValueFunction · 0.85

Calls 3

peg$failFunction · 0.85
peg$f80Function · 0.85

Tested by

no test coverage detected