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

Function peg$parseRemoveItem

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

Source from the content-addressed store, hash-verified

3383 }
3384
3385 function peg$parseRemoveItem() {
3386 let s0, s1, s2, s3;
3387
3388 s0 = peg$currPos;
3389 s1 = peg$parseExpressionIdentifier();
3390 if (s1 !== peg$FAILED) {
3391 if (input.charCodeAt(peg$currPos) === 46) {
3392 s2 = peg$c2;
3393 peg$currPos++;
3394 } else {
3395 s2 = peg$FAILED;
3396 if (peg$silentFails === 0) { peg$fail(peg$e2); }
3397 }
3398 if (s2 !== peg$FAILED) {
3399 s3 = peg$parsePropertyIdentifier();
3400 if (s3 !== peg$FAILED) {
3401 peg$savedPos = s0;
3402 s0 = peg$f23(s1, s3);
3403 } else {
3404 peg$currPos = s0;
3405 s0 = peg$FAILED;
3406 }
3407 } else {
3408 peg$currPos = s0;
3409 s0 = peg$FAILED;
3410 }
3411 } else {
3412 peg$currPos = s0;
3413 s0 = peg$FAILED;
3414 }
3415 if (s0 === peg$FAILED) {
3416 s0 = peg$currPos;
3417 s1 = peg$parseExpressionIdentifier();
3418 if (s1 !== peg$FAILED) {
3419 if (input.charCodeAt(peg$currPos) === 58) {
3420 s2 = peg$c3;
3421 peg$currPos++;
3422 } else {
3423 s2 = peg$FAILED;
3424 if (peg$silentFails === 0) { peg$fail(peg$e3); }
3425 }
3426 if (s2 !== peg$FAILED) {
3427 s3 = peg$parseLabelIdentifier();
3428 if (s3 !== peg$FAILED) {
3429 peg$savedPos = s0;
3430 s0 = peg$f24(s1, s3);
3431 } else {
3432 peg$currPos = s0;
3433 s0 = peg$FAILED;
3434 }
3435 } else {
3436 peg$currPos = s0;
3437 s0 = peg$FAILED;
3438 }
3439 } else {
3440 peg$currPos = s0;
3441 s0 = peg$FAILED;
3442 }

Callers 1

peg$parseRemoveItemListFunction · 0.85

Calls 6

peg$failFunction · 0.85
peg$f23Function · 0.85
peg$parseLabelIdentifierFunction · 0.85
peg$f24Function · 0.85

Tested by

no test coverage detected