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

Function peg$parseCaseToken

lib/parser.js:6307–6342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6305 }
6306
6307 function peg$parseCaseToken() {
6308 var s0, s1, s2, s3;
6309
6310 s0 = peg$currPos;
6311 if (input.substr(peg$currPos, 4) === peg$c260) {
6312 s1 = peg$c260;
6313 peg$currPos += 4;
6314 } else {
6315 s1 = peg$FAILED;
6316 if (peg$silentFails === 0) { peg$fail(peg$c261); }
6317 }
6318 if (s1 !== peg$FAILED) {
6319 s2 = peg$currPos;
6320 peg$silentFails++;
6321 s3 = peg$parseIdentifierPart();
6322 peg$silentFails--;
6323 if (s3 === peg$FAILED) {
6324 s2 = peg$c5;
6325 } else {
6326 peg$currPos = s2;
6327 s2 = peg$c3;
6328 }
6329 if (s2 !== peg$FAILED) {
6330 s1 = [s1, s2];
6331 s0 = s1;
6332 } else {
6333 peg$currPos = s0;
6334 s0 = peg$c3;
6335 }
6336 } else {
6337 peg$currPos = s0;
6338 s0 = peg$c3;
6339 }
6340
6341 return s0;
6342 }
6343
6344 function peg$parseCatchToken() {
6345 var s0, s1, s2, s3;

Callers 1

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