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

Function peg$parseElseToken

lib/parser.js:3869–3904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3867 }
3868
3869 function peg$parseElseToken() {
3870 var s0, s1, s2, s3;
3871
3872 s0 = peg$currPos;
3873 if (input.substr(peg$currPos, 4) === peg$c186) {
3874 s1 = peg$c186;
3875 peg$currPos += 4;
3876 } else {
3877 s1 = peg$FAILED;
3878 if (peg$silentFails === 0) { peg$fail(peg$c187); }
3879 }
3880 if (s1 !== peg$FAILED) {
3881 s2 = peg$currPos;
3882 peg$silentFails++;
3883 s3 = peg$parseIdentifierPart();
3884 peg$silentFails--;
3885 if (s3 === peg$FAILED) {
3886 s2 = void 0;
3887 } else {
3888 peg$currPos = s2;
3889 s2 = peg$FAILED;
3890 }
3891 if (s2 !== peg$FAILED) {
3892 s1 = [s1, s2];
3893 s0 = s1;
3894 } else {
3895 peg$currPos = s0;
3896 s0 = peg$FAILED;
3897 }
3898 } else {
3899 peg$currPos = s0;
3900 s0 = peg$FAILED;
3901 }
3902
3903 return s0;
3904 }
3905
3906 function peg$parseEnumToken() {
3907 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…