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

Function peg$parseTrueToken

lib/parser.js:4572–4607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4570 }
4571
4572 function peg$parseTrueToken() {
4573 var s0, s1, s2, s3;
4574
4575 s0 = peg$currPos;
4576 if (input.substr(peg$currPos, 4) === peg$c224) {
4577 s1 = peg$c224;
4578 peg$currPos += 4;
4579 } else {
4580 s1 = peg$FAILED;
4581 if (peg$silentFails === 0) { peg$fail(peg$c225); }
4582 }
4583 if (s1 !== peg$FAILED) {
4584 s2 = peg$currPos;
4585 peg$silentFails++;
4586 s3 = peg$parseIdentifierPart();
4587 peg$silentFails--;
4588 if (s3 === peg$FAILED) {
4589 s2 = void 0;
4590 } else {
4591 peg$currPos = s2;
4592 s2 = peg$FAILED;
4593 }
4594 if (s2 !== peg$FAILED) {
4595 s1 = [s1, s2];
4596 s0 = s1;
4597 } else {
4598 peg$currPos = s0;
4599 s0 = peg$FAILED;
4600 }
4601 } else {
4602 peg$currPos = s0;
4603 s0 = peg$FAILED;
4604 }
4605
4606 return s0;
4607 }
4608
4609 function peg$parseTryToken() {
4610 var s0, s1, s2, s3;

Callers 1

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