MCPcopy Index your code
hub / github.com/pegjs/pegjs / peg$parseMultiLineComment

Function peg$parseMultiLineComment

lib/parser.js:1546–1647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1544 }
1545
1546 function peg$parseMultiLineComment() {
1547 var s0, s1, s2, s3, s4, s5;
1548
1549 s0 = peg$currPos;
1550 if (input.substr(peg$currPos, 2) === peg$c62) {
1551 s1 = peg$c62;
1552 peg$currPos += 2;
1553 } else {
1554 s1 = peg$FAILED;
1555 if (peg$silentFails === 0) { peg$fail(peg$c63); }
1556 }
1557 if (s1 !== peg$FAILED) {
1558 s2 = [];
1559 s3 = peg$currPos;
1560 s4 = peg$currPos;
1561 peg$silentFails++;
1562 if (input.substr(peg$currPos, 2) === peg$c64) {
1563 s5 = peg$c64;
1564 peg$currPos += 2;
1565 } else {
1566 s5 = peg$FAILED;
1567 if (peg$silentFails === 0) { peg$fail(peg$c65); }
1568 }
1569 peg$silentFails--;
1570 if (s5 === peg$FAILED) {
1571 s4 = void 0;
1572 } else {
1573 peg$currPos = s4;
1574 s4 = peg$FAILED;
1575 }
1576 if (s4 !== peg$FAILED) {
1577 s5 = peg$parseSourceCharacter();
1578 if (s5 !== peg$FAILED) {
1579 s4 = [s4, s5];
1580 s3 = s4;
1581 } else {
1582 peg$currPos = s3;
1583 s3 = peg$FAILED;
1584 }
1585 } else {
1586 peg$currPos = s3;
1587 s3 = peg$FAILED;
1588 }
1589 while (s3 !== peg$FAILED) {
1590 s2.push(s3);
1591 s3 = peg$currPos;
1592 s4 = peg$currPos;
1593 peg$silentFails++;
1594 if (input.substr(peg$currPos, 2) === peg$c64) {
1595 s5 = peg$c64;
1596 peg$currPos += 2;
1597 } else {
1598 s5 = peg$FAILED;
1599 if (peg$silentFails === 0) { peg$fail(peg$c65); }
1600 }
1601 peg$silentFails--;
1602 if (s5 === peg$FAILED) {
1603 s4 = void 0;

Callers 1

peg$parseCommentFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseSourceCharacterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…