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

Function peg$parsePropertyIdentifier

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

Source from the content-addressed store, hash-verified

17681 }
17682
17683 function peg$parsePropertyIdentifier() {
17684 let s0, s1, s2, s3, s4;
17685
17686 s0 = peg$currPos;
17687 if (input.charCodeAt(peg$currPos) === 64) {
17688 s1 = peg$c114;
17689 peg$currPos++;
17690 } else {
17691 s1 = peg$FAILED;
17692 if (peg$silentFails === 0) { peg$fail(peg$e130); }
17693 }
17694 if (s1 !== peg$FAILED) {
17695 s2 = input.charAt(peg$currPos);
17696 if (peg$r0.test(s2)) {
17697 peg$currPos++;
17698 } else {
17699 s2 = peg$FAILED;
17700 if (peg$silentFails === 0) { peg$fail(peg$e12); }
17701 }
17702 if (s2 !== peg$FAILED) {
17703 s3 = [];
17704 s4 = input.charAt(peg$currPos);
17705 if (peg$r1.test(s4)) {
17706 peg$currPos++;
17707 } else {
17708 s4 = peg$FAILED;
17709 if (peg$silentFails === 0) { peg$fail(peg$e13); }
17710 }
17711 while (s4 !== peg$FAILED) {
17712 s3.push(s4);
17713 s4 = input.charAt(peg$currPos);
17714 if (peg$r1.test(s4)) {
17715 peg$currPos++;
17716 } else {
17717 s4 = peg$FAILED;
17718 if (peg$silentFails === 0) { peg$fail(peg$e13); }
17719 }
17720 }
17721 peg$savedPos = s0;
17722 s0 = peg$f291(s2, s3);
17723 } else {
17724 peg$currPos = s0;
17725 s0 = peg$FAILED;
17726 }
17727 } else {
17728 peg$currPos = s0;
17729 s0 = peg$FAILED;
17730 }
17731 if (s0 === peg$FAILED) {
17732 s0 = peg$parseBacktickIdentifier();
17733 if (s0 === peg$FAILED) {
17734 s0 = peg$currPos;
17735 s1 = input.charAt(peg$currPos);
17736 if (peg$r0.test(s1)) {
17737 peg$currPos++;
17738 } else {
17739 s1 = peg$FAILED;
17740 if (peg$silentFails === 0) { peg$fail(peg$e12); }

Callers 15

peg$parseRemoveItemFunction · 0.85
peg$parseListExpressionFunction · 0.85
peg$parseWithExpressionFunction · 0.85
peg$parseSetAssignmentFunction · 0.85
peg$parseSetValueFunction · 0.85
peg$parsePropertyValueFunction · 0.85
peg$parsePropertyKeyFunction · 0.85
peg$parseInConditionFunction · 0.85
peg$parseIsNullConditionFunction · 0.85
peg$parseRegexConditionFunction · 0.85

Calls 5

peg$failFunction · 0.85
peg$f291Function · 0.85
peg$f292Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected