MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseConstToken

Function peg$parseConstToken

lib/parser.js:6418–6453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6416 }
6417
6418 function peg$parseConstToken() {
6419 var s0, s1, s2, s3;
6420
6421 s0 = peg$currPos;
6422 if (input.substr(peg$currPos, 5) === peg$c266) {
6423 s1 = peg$c266;
6424 peg$currPos += 5;
6425 } else {
6426 s1 = peg$FAILED;
6427 if (peg$silentFails === 0) { peg$fail(peg$c267); }
6428 }
6429 if (s1 !== peg$FAILED) {
6430 s2 = peg$currPos;
6431 peg$silentFails++;
6432 s3 = peg$parseIdentifierPart();
6433 peg$silentFails--;
6434 if (s3 === peg$FAILED) {
6435 s2 = peg$c5;
6436 } else {
6437 peg$currPos = s2;
6438 s2 = peg$c3;
6439 }
6440 if (s2 !== peg$FAILED) {
6441 s1 = [s1, s2];
6442 s0 = s1;
6443 } else {
6444 peg$currPos = s0;
6445 s0 = peg$c3;
6446 }
6447 } else {
6448 peg$currPos = s0;
6449 s0 = peg$c3;
6450 }
6451
6452 return s0;
6453 }
6454
6455 function peg$parseContinueToken() {
6456 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…