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

Function peg$parseSliceIndex

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

Source from the content-addressed store, hash-verified

9688 }
9689
9690 function peg$parseSliceIndex() {
9691 let s0, s1;
9692
9693 s0 = peg$currPos;
9694 s1 = peg$parseNullLiteral();
9695 if (s1 !== peg$FAILED) {
9696 peg$savedPos = s0;
9697 s1 = peg$f173();
9698 }
9699 s0 = s1;
9700 if (s0 === peg$FAILED) {
9701 s0 = peg$currPos;
9702 s1 = peg$parseArithmeticExpression();
9703 if (s1 !== peg$FAILED) {
9704 peg$savedPos = s0;
9705 s1 = peg$f174(s1);
9706 }
9707 s0 = s1;
9708 }
9709
9710 return s0;
9711 }
9712
9713 function peg$parsePostfixOperator() {
9714 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;

Callers 1

peg$parsePostfixOperatorFunction · 0.85

Calls 4

peg$parseNullLiteralFunction · 0.85
peg$f173Function · 0.85
peg$f174Function · 0.85

Tested by

no test coverage detected