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

Function peg$parseCatchToken

lib/parser.js:6344–6379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6342 }
6343
6344 function peg$parseCatchToken() {
6345 var s0, s1, s2, s3;
6346
6347 s0 = peg$currPos;
6348 if (input.substr(peg$currPos, 5) === peg$c262) {
6349 s1 = peg$c262;
6350 peg$currPos += 5;
6351 } else {
6352 s1 = peg$FAILED;
6353 if (peg$silentFails === 0) { peg$fail(peg$c263); }
6354 }
6355 if (s1 !== peg$FAILED) {
6356 s2 = peg$currPos;
6357 peg$silentFails++;
6358 s3 = peg$parseIdentifierPart();
6359 peg$silentFails--;
6360 if (s3 === peg$FAILED) {
6361 s2 = peg$c5;
6362 } else {
6363 peg$currPos = s2;
6364 s2 = peg$c3;
6365 }
6366 if (s2 !== peg$FAILED) {
6367 s1 = [s1, s2];
6368 s0 = s1;
6369 } else {
6370 peg$currPos = s0;
6371 s0 = peg$c3;
6372 }
6373 } else {
6374 peg$currPos = s0;
6375 s0 = peg$c3;
6376 }
6377
6378 return s0;
6379 }
6380
6381 function peg$parseClassToken() {
6382 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…