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

Function peg$parsePostfixExpression

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

Source from the content-addressed store, hash-verified

9666 }
9667
9668 function peg$parsePostfixExpression() {
9669 let s0, s1, s2, s3;
9670
9671 s0 = peg$currPos;
9672 s1 = peg$parsePrimaryExpression();
9673 if (s1 !== peg$FAILED) {
9674 s2 = [];
9675 s3 = peg$parsePostfixOperator();
9676 while (s3 !== peg$FAILED) {
9677 s2.push(s3);
9678 s3 = peg$parsePostfixOperator();
9679 }
9680 peg$savedPos = s0;
9681 s0 = peg$f172(s1, s2);
9682 } else {
9683 peg$currPos = s0;
9684 s0 = peg$FAILED;
9685 }
9686
9687 return s0;
9688 }
9689
9690 function peg$parseSliceIndex() {
9691 let s0, s1;

Callers 2

peg$parseUnaryExpressionFunction · 0.85

Calls 4

peg$parsePostfixOperatorFunction · 0.85
peg$f172Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected