MCPcopy
hub / github.com/pegjs/pegjs / peg$parseBreakToken

Function peg$parseBreakToken

lib/parser.js:3499–3534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3497 }
3498
3499 function peg$parseBreakToken() {
3500 var s0, s1, s2, s3;
3501
3502 s0 = peg$currPos;
3503 if (input.substr(peg$currPos, 5) === peg$c166) {
3504 s1 = peg$c166;
3505 peg$currPos += 5;
3506 } else {
3507 s1 = peg$FAILED;
3508 if (peg$silentFails === 0) { peg$fail(peg$c167); }
3509 }
3510 if (s1 !== peg$FAILED) {
3511 s2 = peg$currPos;
3512 peg$silentFails++;
3513 s3 = peg$parseIdentifierPart();
3514 peg$silentFails--;
3515 if (s3 === peg$FAILED) {
3516 s2 = void 0;
3517 } else {
3518 peg$currPos = s2;
3519 s2 = peg$FAILED;
3520 }
3521 if (s2 !== peg$FAILED) {
3522 s1 = [s1, s2];
3523 s0 = s1;
3524 } else {
3525 peg$currPos = s0;
3526 s0 = peg$FAILED;
3527 }
3528 } else {
3529 peg$currPos = s0;
3530 s0 = peg$FAILED;
3531 }
3532
3533 return s0;
3534 }
3535
3536 function peg$parseCaseToken() {
3537 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…