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

Function peg$parseAliasIdentifier

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

Source from the content-addressed store, hash-verified

17595 }
17596
17597 function peg$parseAliasIdentifier() {
17598 let s0, s1, s2, s3;
17599
17600 s0 = peg$parseBacktickIdentifier();
17601 if (s0 === peg$FAILED) {
17602 s0 = peg$currPos;
17603 s1 = input.charAt(peg$currPos);
17604 if (peg$r0.test(s1)) {
17605 peg$currPos++;
17606 } else {
17607 s1 = peg$FAILED;
17608 if (peg$silentFails === 0) { peg$fail(peg$e12); }
17609 }
17610 if (s1 !== peg$FAILED) {
17611 s2 = [];
17612 s3 = input.charAt(peg$currPos);
17613 if (peg$r1.test(s3)) {
17614 peg$currPos++;
17615 } else {
17616 s3 = peg$FAILED;
17617 if (peg$silentFails === 0) { peg$fail(peg$e13); }
17618 }
17619 while (s3 !== peg$FAILED) {
17620 s2.push(s3);
17621 s3 = input.charAt(peg$currPos);
17622 if (peg$r1.test(s3)) {
17623 peg$currPos++;
17624 } else {
17625 s3 = peg$FAILED;
17626 if (peg$silentFails === 0) { peg$fail(peg$e13); }
17627 }
17628 }
17629 peg$savedPos = s0;
17630 s0 = peg$f289(s1, s2);
17631 } else {
17632 peg$currPos = s0;
17633 s0 = peg$FAILED;
17634 }
17635 }
17636
17637 return s0;
17638 }
17639
17640 function peg$parseExpressionIdentifier() {
17641 let s0, s1, s2, s3;

Callers 3

peg$parseWithItemFunction · 0.85
peg$parseUnwindClauseFunction · 0.85
peg$parseReturnItemFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$f289Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected