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

Function peg$parseExtendsToken

lib/parser.js:3980–4015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3978 }
3979
3980 function peg$parseExtendsToken() {
3981 var s0, s1, s2, s3;
3982
3983 s0 = peg$currPos;
3984 if (input.substr(peg$currPos, 7) === peg$c192) {
3985 s1 = peg$c192;
3986 peg$currPos += 7;
3987 } else {
3988 s1 = peg$FAILED;
3989 if (peg$silentFails === 0) { peg$fail(peg$c193); }
3990 }
3991 if (s1 !== peg$FAILED) {
3992 s2 = peg$currPos;
3993 peg$silentFails++;
3994 s3 = peg$parseIdentifierPart();
3995 peg$silentFails--;
3996 if (s3 === peg$FAILED) {
3997 s2 = void 0;
3998 } else {
3999 peg$currPos = s2;
4000 s2 = peg$FAILED;
4001 }
4002 if (s2 !== peg$FAILED) {
4003 s1 = [s1, s2];
4004 s0 = s1;
4005 } else {
4006 peg$currPos = s0;
4007 s0 = peg$FAILED;
4008 }
4009 } else {
4010 peg$currPos = s0;
4011 s0 = peg$FAILED;
4012 }
4013
4014 return s0;
4015 }
4016
4017 function peg$parseFalseToken() {
4018 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…