MCPcopy Index your code
hub / github.com/pegjs/pegjs / peg$parseCatchToken

Function peg$parseCatchToken

lib/parser.js:3573–3608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3571 }
3572
3573 function peg$parseCatchToken() {
3574 var s0, s1, s2, s3;
3575
3576 s0 = peg$currPos;
3577 if (input.substr(peg$currPos, 5) === peg$c170) {
3578 s1 = peg$c170;
3579 peg$currPos += 5;
3580 } else {
3581 s1 = peg$FAILED;
3582 if (peg$silentFails === 0) { peg$fail(peg$c171); }
3583 }
3584 if (s1 !== peg$FAILED) {
3585 s2 = peg$currPos;
3586 peg$silentFails++;
3587 s3 = peg$parseIdentifierPart();
3588 peg$silentFails--;
3589 if (s3 === peg$FAILED) {
3590 s2 = void 0;
3591 } else {
3592 peg$currPos = s2;
3593 s2 = peg$FAILED;
3594 }
3595 if (s2 !== peg$FAILED) {
3596 s1 = [s1, s2];
3597 s0 = s1;
3598 } else {
3599 peg$currPos = s0;
3600 s0 = peg$FAILED;
3601 }
3602 } else {
3603 peg$currPos = s0;
3604 s0 = peg$FAILED;
3605 }
3606
3607 return s0;
3608 }
3609
3610 function peg$parseClassToken() {
3611 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…