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

Function peg$parseMapLiteralExpr

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

Source from the content-addressed store, hash-verified

10517 }
10518
10519 function peg$parseMapLiteralExpr() {
10520 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
10521
10522 s0 = peg$currPos;
10523 if (input.charCodeAt(peg$currPos) === 123) {
10524 s1 = peg$c18;
10525 peg$currPos++;
10526 } else {
10527 s1 = peg$FAILED;
10528 if (peg$silentFails === 0) { peg$fail(peg$e20); }
10529 }
10530 if (s1 !== peg$FAILED) {
10531 s2 = peg$parse_();
10532 if (input.charCodeAt(peg$currPos) === 125) {
10533 s3 = peg$c19;
10534 peg$currPos++;
10535 } else {
10536 s3 = peg$FAILED;
10537 if (peg$silentFails === 0) { peg$fail(peg$e21); }
10538 }
10539 if (s3 !== peg$FAILED) {
10540 peg$savedPos = s0;
10541 s0 = peg$f189();
10542 } else {
10543 peg$currPos = s0;
10544 s0 = peg$FAILED;
10545 }
10546 } else {
10547 peg$currPos = s0;
10548 s0 = peg$FAILED;
10549 }
10550 if (s0 === peg$FAILED) {
10551 s0 = peg$currPos;
10552 if (input.charCodeAt(peg$currPos) === 123) {
10553 s1 = peg$c18;
10554 peg$currPos++;
10555 } else {
10556 s1 = peg$FAILED;
10557 if (peg$silentFails === 0) { peg$fail(peg$e20); }
10558 }
10559 if (s1 !== peg$FAILED) {
10560 s2 = peg$parse_();
10561 s3 = peg$parseMapLiteralEntry();
10562 if (s3 !== peg$FAILED) {
10563 s4 = [];
10564 s5 = peg$currPos;
10565 s6 = peg$parse_();
10566 if (input.charCodeAt(peg$currPos) === 44) {
10567 s7 = peg$c1;
10568 peg$currPos++;
10569 } else {
10570 s7 = peg$FAILED;
10571 if (peg$silentFails === 0) { peg$fail(peg$e1); }
10572 }
10573 if (s7 !== peg$FAILED) {
10574 s8 = peg$parse_();
10575 s9 = peg$parseMapLiteralEntry();
10576 if (s9 !== peg$FAILED) {

Callers 1

Calls 6

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$f189Function · 0.85
peg$parseMapLiteralEntryFunction · 0.85
peg$f190Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected