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

Function peg$parseListLiteral

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

Source from the content-addressed store, hash-verified

16374 }
16375
16376 function peg$parseListLiteral() {
16377 let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
16378
16379 s0 = peg$currPos;
16380 if (input.charCodeAt(peg$currPos) === 91) {
16381 s1 = peg$c20;
16382 peg$currPos++;
16383 } else {
16384 s1 = peg$FAILED;
16385 if (peg$silentFails === 0) { peg$fail(peg$e22); }
16386 }
16387 if (s1 !== peg$FAILED) {
16388 s2 = peg$parse_();
16389 if (input.charCodeAt(peg$currPos) === 93) {
16390 s3 = peg$c21;
16391 peg$currPos++;
16392 } else {
16393 s3 = peg$FAILED;
16394 if (peg$silentFails === 0) { peg$fail(peg$e23); }
16395 }
16396 if (s3 !== peg$FAILED) {
16397 peg$savedPos = s0;
16398 s0 = peg$f262();
16399 } else {
16400 peg$currPos = s0;
16401 s0 = peg$FAILED;
16402 }
16403 } else {
16404 peg$currPos = s0;
16405 s0 = peg$FAILED;
16406 }
16407 if (s0 === peg$FAILED) {
16408 s0 = peg$currPos;
16409 if (input.charCodeAt(peg$currPos) === 91) {
16410 s1 = peg$c20;
16411 peg$currPos++;
16412 } else {
16413 s1 = peg$FAILED;
16414 if (peg$silentFails === 0) { peg$fail(peg$e22); }
16415 }
16416 if (s1 !== peg$FAILED) {
16417 s2 = peg$parse_();
16418 s3 = peg$parseLiteral();
16419 if (s3 !== peg$FAILED) {
16420 s4 = [];
16421 s5 = peg$currPos;
16422 s6 = peg$parse_();
16423 if (input.charCodeAt(peg$currPos) === 44) {
16424 s7 = peg$c1;
16425 peg$currPos++;
16426 } else {
16427 s7 = peg$FAILED;
16428 if (peg$silentFails === 0) { peg$fail(peg$e1); }
16429 }
16430 if (s7 !== peg$FAILED) {
16431 s8 = peg$parse_();
16432 s9 = peg$parseLiteral();
16433 if (s9 !== peg$FAILED) {

Callers 2

peg$parseListExpressionFunction · 0.85
peg$parseInConditionFunction · 0.85

Calls 6

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$f262Function · 0.85
peg$parseLiteralFunction · 0.85
peg$f263Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected