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

Function peg$parseConstToken

lib/parser.js:3647–3682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3645 }
3646
3647 function peg$parseConstToken() {
3648 var s0, s1, s2, s3;
3649
3650 s0 = peg$currPos;
3651 if (input.substr(peg$currPos, 5) === peg$c174) {
3652 s1 = peg$c174;
3653 peg$currPos += 5;
3654 } else {
3655 s1 = peg$FAILED;
3656 if (peg$silentFails === 0) { peg$fail(peg$c175); }
3657 }
3658 if (s1 !== peg$FAILED) {
3659 s2 = peg$currPos;
3660 peg$silentFails++;
3661 s3 = peg$parseIdentifierPart();
3662 peg$silentFails--;
3663 if (s3 === peg$FAILED) {
3664 s2 = void 0;
3665 } else {
3666 peg$currPos = s2;
3667 s2 = peg$FAILED;
3668 }
3669 if (s2 !== peg$FAILED) {
3670 s1 = [s1, s2];
3671 s0 = s1;
3672 } else {
3673 peg$currPos = s0;
3674 s0 = peg$FAILED;
3675 }
3676 } else {
3677 peg$currPos = s0;
3678 s0 = peg$FAILED;
3679 }
3680
3681 return s0;
3682 }
3683
3684 function peg$parseContinueToken() {
3685 var s0, s1, s2, s3;

Callers 1

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…