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

Function peg$parseEscapeCharacter

lib/parser.js:2888–2915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2886 }
2887
2888 function peg$parseEscapeCharacter() {
2889 var s0;
2890
2891 s0 = peg$parseSingleEscapeCharacter();
2892 if (s0 === peg$FAILED) {
2893 s0 = peg$parseDecimalDigit();
2894 if (s0 === peg$FAILED) {
2895 if (input.charCodeAt(peg$currPos) === 120) {
2896 s0 = peg$c124;
2897 peg$currPos++;
2898 } else {
2899 s0 = peg$FAILED;
2900 if (peg$silentFails === 0) { peg$fail(peg$c125); }
2901 }
2902 if (s0 === peg$FAILED) {
2903 if (input.charCodeAt(peg$currPos) === 117) {
2904 s0 = peg$c126;
2905 peg$currPos++;
2906 } else {
2907 s0 = peg$FAILED;
2908 if (peg$silentFails === 0) { peg$fail(peg$c127); }
2909 }
2910 }
2911 }
2912 }
2913
2914 return s0;
2915 }
2916
2917 function peg$parseHexEscapeSequence() {
2918 var s0, s1, s2, s3, s4, s5;

Callers 1

Calls 3

peg$parseDecimalDigitFunction · 0.85
peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…