MCPcopy Create free account
hub / github.com/pegjs/pegjs / peg$parseNullToken

Function peg$parseNullToken

lib/parser.js:4350–4385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4348 }
4349
4350 function peg$parseNullToken() {
4351 var s0, s1, s2, s3;
4352
4353 s0 = peg$currPos;
4354 if (input.substr(peg$currPos, 4) === peg$c212) {
4355 s1 = peg$c212;
4356 peg$currPos += 4;
4357 } else {
4358 s1 = peg$FAILED;
4359 if (peg$silentFails === 0) { peg$fail(peg$c213); }
4360 }
4361 if (s1 !== peg$FAILED) {
4362 s2 = peg$currPos;
4363 peg$silentFails++;
4364 s3 = peg$parseIdentifierPart();
4365 peg$silentFails--;
4366 if (s3 === peg$FAILED) {
4367 s2 = void 0;
4368 } else {
4369 peg$currPos = s2;
4370 s2 = peg$FAILED;
4371 }
4372 if (s2 !== peg$FAILED) {
4373 s1 = [s1, s2];
4374 s0 = s1;
4375 } else {
4376 peg$currPos = s0;
4377 s0 = peg$FAILED;
4378 }
4379 } else {
4380 peg$currPos = s0;
4381 s0 = peg$FAILED;
4382 }
4383
4384 return s0;
4385 }
4386
4387 function peg$parseReturnToken() {
4388 var s0, s1, s2, s3;

Callers 1

peg$parseReservedWordFunction · 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…