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

Function peg$parseClassToken

lib/parser.js:3610–3645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3608 }
3609
3610 function peg$parseClassToken() {
3611 var s0, s1, s2, s3;
3612
3613 s0 = peg$currPos;
3614 if (input.substr(peg$currPos, 5) === peg$c172) {
3615 s1 = peg$c172;
3616 peg$currPos += 5;
3617 } else {
3618 s1 = peg$FAILED;
3619 if (peg$silentFails === 0) { peg$fail(peg$c173); }
3620 }
3621 if (s1 !== peg$FAILED) {
3622 s2 = peg$currPos;
3623 peg$silentFails++;
3624 s3 = peg$parseIdentifierPart();
3625 peg$silentFails--;
3626 if (s3 === peg$FAILED) {
3627 s2 = void 0;
3628 } else {
3629 peg$currPos = s2;
3630 s2 = peg$FAILED;
3631 }
3632 if (s2 !== peg$FAILED) {
3633 s1 = [s1, s2];
3634 s0 = s1;
3635 } else {
3636 peg$currPos = s0;
3637 s0 = peg$FAILED;
3638 }
3639 } else {
3640 peg$currPos = s0;
3641 s0 = peg$FAILED;
3642 }
3643
3644 return s0;
3645 }
3646
3647 function peg$parseConstToken() {
3648 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…