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

Function peg$parseMultiLineCommentNoLineTerminator

lib/parser.js:1649–1756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1647 }
1648
1649 function peg$parseMultiLineCommentNoLineTerminator() {
1650 var s0, s1, s2, s3, s4, s5;
1651
1652 s0 = peg$currPos;
1653 if (input.substr(peg$currPos, 2) === peg$c62) {
1654 s1 = peg$c62;
1655 peg$currPos += 2;
1656 } else {
1657 s1 = peg$FAILED;
1658 if (peg$silentFails === 0) { peg$fail(peg$c63); }
1659 }
1660 if (s1 !== peg$FAILED) {
1661 s2 = [];
1662 s3 = peg$currPos;
1663 s4 = peg$currPos;
1664 peg$silentFails++;
1665 if (input.substr(peg$currPos, 2) === peg$c64) {
1666 s5 = peg$c64;
1667 peg$currPos += 2;
1668 } else {
1669 s5 = peg$FAILED;
1670 if (peg$silentFails === 0) { peg$fail(peg$c65); }
1671 }
1672 if (s5 === peg$FAILED) {
1673 s5 = peg$parseLineTerminator();
1674 }
1675 peg$silentFails--;
1676 if (s5 === peg$FAILED) {
1677 s4 = void 0;
1678 } else {
1679 peg$currPos = s4;
1680 s4 = peg$FAILED;
1681 }
1682 if (s4 !== peg$FAILED) {
1683 s5 = peg$parseSourceCharacter();
1684 if (s5 !== peg$FAILED) {
1685 s4 = [s4, s5];
1686 s3 = s4;
1687 } else {
1688 peg$currPos = s3;
1689 s3 = peg$FAILED;
1690 }
1691 } else {
1692 peg$currPos = s3;
1693 s3 = peg$FAILED;
1694 }
1695 while (s3 !== peg$FAILED) {
1696 s2.push(s3);
1697 s3 = peg$currPos;
1698 s4 = peg$currPos;
1699 peg$silentFails++;
1700 if (input.substr(peg$currPos, 2) === peg$c64) {
1701 s5 = peg$c64;
1702 peg$currPos += 2;
1703 } else {
1704 s5 = peg$FAILED;
1705 if (peg$silentFails === 0) { peg$fail(peg$c65); }
1706 }

Callers 1

peg$parse_Function · 0.85

Calls 3

peg$failFunction · 0.85
peg$parseLineTerminatorFunction · 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…