MCPcopy
hub / github.com/pegjs/pegjs / peg$parseCaseToken

Function peg$parseCaseToken

lib/parser.js:3536–3571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3534 }
3535
3536 function peg$parseCaseToken() {
3537 var s0, s1, s2, s3;
3538
3539 s0 = peg$currPos;
3540 if (input.substr(peg$currPos, 4) === peg$c168) {
3541 s1 = peg$c168;
3542 peg$currPos += 4;
3543 } else {
3544 s1 = peg$FAILED;
3545 if (peg$silentFails === 0) { peg$fail(peg$c169); }
3546 }
3547 if (s1 !== peg$FAILED) {
3548 s2 = peg$currPos;
3549 peg$silentFails++;
3550 s3 = peg$parseIdentifierPart();
3551 peg$silentFails--;
3552 if (s3 === peg$FAILED) {
3553 s2 = void 0;
3554 } else {
3555 peg$currPos = s2;
3556 s2 = peg$FAILED;
3557 }
3558 if (s2 !== peg$FAILED) {
3559 s1 = [s1, s2];
3560 s0 = s1;
3561 } else {
3562 peg$currPos = s0;
3563 s0 = peg$FAILED;
3564 }
3565 } else {
3566 peg$currPos = s0;
3567 s0 = peg$FAILED;
3568 }
3569
3570 return s0;
3571 }
3572
3573 function peg$parseCatchToken() {
3574 var s0, s1, s2, s3;

Callers 1

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…