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

Function peg$parseDoToken

lib/parser.js:3832–3867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3830 }
3831
3832 function peg$parseDoToken() {
3833 var s0, s1, s2, s3;
3834
3835 s0 = peg$currPos;
3836 if (input.substr(peg$currPos, 2) === peg$c184) {
3837 s1 = peg$c184;
3838 peg$currPos += 2;
3839 } else {
3840 s1 = peg$FAILED;
3841 if (peg$silentFails === 0) { peg$fail(peg$c185); }
3842 }
3843 if (s1 !== peg$FAILED) {
3844 s2 = peg$currPos;
3845 peg$silentFails++;
3846 s3 = peg$parseIdentifierPart();
3847 peg$silentFails--;
3848 if (s3 === peg$FAILED) {
3849 s2 = void 0;
3850 } else {
3851 peg$currPos = s2;
3852 s2 = peg$FAILED;
3853 }
3854 if (s2 !== peg$FAILED) {
3855 s1 = [s1, s2];
3856 s0 = s1;
3857 } else {
3858 peg$currPos = s0;
3859 s0 = peg$FAILED;
3860 }
3861 } else {
3862 peg$currPos = s0;
3863 s0 = peg$FAILED;
3864 }
3865
3866 return s0;
3867 }
3868
3869 function peg$parseElseToken() {
3870 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…