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

Function peg$parseSingleEscapeCharacter

lib/parser.js:2731–2851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2729 }
2730
2731 function peg$parseSingleEscapeCharacter() {
2732 var s0, s1;
2733
2734 if (input.charCodeAt(peg$currPos) === 39) {
2735 s0 = peg$c88;
2736 peg$currPos++;
2737 } else {
2738 s0 = peg$FAILED;
2739 if (peg$silentFails === 0) { peg$fail(peg$c89); }
2740 }
2741 if (s0 === peg$FAILED) {
2742 if (input.charCodeAt(peg$currPos) === 34) {
2743 s0 = peg$c85;
2744 peg$currPos++;
2745 } else {
2746 s0 = peg$FAILED;
2747 if (peg$silentFails === 0) { peg$fail(peg$c86); }
2748 }
2749 if (s0 === peg$FAILED) {
2750 if (input.charCodeAt(peg$currPos) === 92) {
2751 s0 = peg$c73;
2752 peg$currPos++;
2753 } else {
2754 s0 = peg$FAILED;
2755 if (peg$silentFails === 0) { peg$fail(peg$c74); }
2756 }
2757 if (s0 === peg$FAILED) {
2758 s0 = peg$currPos;
2759 if (input.charCodeAt(peg$currPos) === 98) {
2760 s1 = peg$c106;
2761 peg$currPos++;
2762 } else {
2763 s1 = peg$FAILED;
2764 if (peg$silentFails === 0) { peg$fail(peg$c107); }
2765 }
2766 if (s1 !== peg$FAILED) {
2767 peg$savedPos = s0;
2768 s1 = peg$c108();
2769 }
2770 s0 = s1;
2771 if (s0 === peg$FAILED) {
2772 s0 = peg$currPos;
2773 if (input.charCodeAt(peg$currPos) === 102) {
2774 s1 = peg$c109;
2775 peg$currPos++;
2776 } else {
2777 s1 = peg$FAILED;
2778 if (peg$silentFails === 0) { peg$fail(peg$c110); }
2779 }
2780 if (s1 !== peg$FAILED) {
2781 peg$savedPos = s0;
2782 s1 = peg$c111();
2783 }
2784 s0 = s1;
2785 if (s0 === peg$FAILED) {
2786 s0 = peg$currPos;
2787 if (input.charCodeAt(peg$currPos) === 110) {
2788 s1 = peg$c112;

Callers 2

peg$parseEscapeCharacterFunction · 0.85

Calls 7

peg$failFunction · 0.85
peg$c108Function · 0.85
peg$c111Function · 0.85
peg$c114Function · 0.85
peg$c117Function · 0.85
peg$c120Function · 0.85
peg$c123Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…