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

Function peg$parseWithItem

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

Source from the content-addressed store, hash-verified

4543 }
4544
4545 function peg$parseWithItem() {
4546 let s0, s1, s2, s3, s4, s5;
4547
4548 s0 = peg$currPos;
4549 s1 = peg$parseWithExpression();
4550 if (s1 !== peg$FAILED) {
4551 s2 = peg$parse_();
4552 s3 = peg$parseAS();
4553 if (s3 !== peg$FAILED) {
4554 s4 = peg$parse_();
4555 s5 = peg$parseAliasIdentifier();
4556 if (s5 !== peg$FAILED) {
4557 peg$savedPos = s0;
4558 s0 = peg$f51(s1, s5);
4559 } else {
4560 peg$currPos = s0;
4561 s0 = peg$FAILED;
4562 }
4563 } else {
4564 peg$currPos = s0;
4565 s0 = peg$FAILED;
4566 }
4567 } else {
4568 peg$currPos = s0;
4569 s0 = peg$FAILED;
4570 }
4571 if (s0 === peg$FAILED) {
4572 s0 = peg$currPos;
4573 s1 = peg$parseExpressionIdentifier();
4574 if (s1 !== peg$FAILED) {
4575 peg$savedPos = s0;
4576 s1 = peg$f52(s1);
4577 }
4578 s0 = s1;
4579 }
4580
4581 return s0;
4582 }
4583
4584 function peg$parseWithExpression() {
4585 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;

Callers 1

peg$parseWithItemListFunction · 0.85

Calls 7

peg$parseWithExpressionFunction · 0.85
peg$parse_Function · 0.85
peg$parseASFunction · 0.85
peg$parseAliasIdentifierFunction · 0.85
peg$f51Function · 0.85
peg$f52Function · 0.85

Tested by

no test coverage detected