MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseDoubleStringCharacter

Function peg$parseDoubleStringCharacter

lib/parser.js:4036–4111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4034 }
4035
4036 function peg$parseDoubleStringCharacter() {
4037 var s0, s1, s2;
4038
4039 s0 = peg$currPos;
4040 s1 = peg$currPos;
4041 peg$silentFails++;
4042 if (input.charCodeAt(peg$currPos) === 34) {
4043 s2 = peg$c68;
4044 peg$currPos++;
4045 } else {
4046 s2 = peg$FAILED;
4047 if (peg$silentFails === 0) { peg$fail(peg$c69); }
4048 }
4049 if (s2 === peg$FAILED) {
4050 if (input.charCodeAt(peg$currPos) === 92) {
4051 s2 = peg$c120;
4052 peg$currPos++;
4053 } else {
4054 s2 = peg$FAILED;
4055 if (peg$silentFails === 0) { peg$fail(peg$c121); }
4056 }
4057 if (s2 === peg$FAILED) {
4058 s2 = peg$parseLineTerminator();
4059 }
4060 }
4061 peg$silentFails--;
4062 if (s2 === peg$FAILED) {
4063 s1 = peg$c5;
4064 } else {
4065 peg$currPos = s1;
4066 s1 = peg$c3;
4067 }
4068 if (s1 !== peg$FAILED) {
4069 s2 = peg$parseSourceCharacter();
4070 if (s2 !== peg$FAILED) {
4071 peg$reportedPos = s0;
4072 s1 = peg$c134();
4073 s0 = s1;
4074 } else {
4075 peg$currPos = s0;
4076 s0 = peg$c3;
4077 }
4078 } else {
4079 peg$currPos = s0;
4080 s0 = peg$c3;
4081 }
4082 if (s0 === peg$FAILED) {
4083 s0 = peg$currPos;
4084 if (input.charCodeAt(peg$currPos) === 92) {
4085 s1 = peg$c120;
4086 peg$currPos++;
4087 } else {
4088 s1 = peg$FAILED;
4089 if (peg$silentFails === 0) { peg$fail(peg$c121); }
4090 }
4091 if (s1 !== peg$FAILED) {
4092 s2 = peg$parseEscapeSequence();
4093 if (s2 !== peg$FAILED) {

Callers 2

peg$parseSTRINGFunction · 0.85
peg$parseStringLiteralFunction · 0.85

Calls 7

peg$failFunction · 0.85
peg$parseLineTerminatorFunction · 0.85
peg$parseSourceCharacterFunction · 0.85
peg$c134Function · 0.85
peg$parseEscapeSequenceFunction · 0.85
peg$c122Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…