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

Function peg$parseDoubleStringCharacter

lib/parser.js:2290–2365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2288 }
2289
2290 function peg$parseDoubleStringCharacter() {
2291 var s0, s1, s2;
2292
2293 s0 = peg$currPos;
2294 s1 = peg$currPos;
2295 peg$silentFails++;
2296 if (input.charCodeAt(peg$currPos) === 34) {
2297 s2 = peg$c85;
2298 peg$currPos++;
2299 } else {
2300 s2 = peg$FAILED;
2301 if (peg$silentFails === 0) { peg$fail(peg$c86); }
2302 }
2303 if (s2 === peg$FAILED) {
2304 if (input.charCodeAt(peg$currPos) === 92) {
2305 s2 = peg$c73;
2306 peg$currPos++;
2307 } else {
2308 s2 = peg$FAILED;
2309 if (peg$silentFails === 0) { peg$fail(peg$c74); }
2310 }
2311 if (s2 === peg$FAILED) {
2312 s2 = peg$parseLineTerminator();
2313 }
2314 }
2315 peg$silentFails--;
2316 if (s2 === peg$FAILED) {
2317 s1 = void 0;
2318 } else {
2319 peg$currPos = s1;
2320 s1 = peg$FAILED;
2321 }
2322 if (s1 !== peg$FAILED) {
2323 s2 = peg$parseSourceCharacter();
2324 if (s2 !== peg$FAILED) {
2325 peg$savedPos = s0;
2326 s1 = peg$c90();
2327 s0 = s1;
2328 } else {
2329 peg$currPos = s0;
2330 s0 = peg$FAILED;
2331 }
2332 } else {
2333 peg$currPos = s0;
2334 s0 = peg$FAILED;
2335 }
2336 if (s0 === peg$FAILED) {
2337 s0 = peg$currPos;
2338 if (input.charCodeAt(peg$currPos) === 92) {
2339 s1 = peg$c73;
2340 peg$currPos++;
2341 } else {
2342 s1 = peg$FAILED;
2343 if (peg$silentFails === 0) { peg$fail(peg$c74); }
2344 }
2345 if (s1 !== peg$FAILED) {
2346 s2 = peg$parseEscapeSequence();
2347 if (s2 !== peg$FAILED) {

Callers 1

peg$parseStringLiteralFunction · 0.85

Calls 7

peg$failFunction · 0.85
peg$parseLineTerminatorFunction · 0.85
peg$parseSourceCharacterFunction · 0.85
peg$c90Function · 0.85
peg$parseEscapeSequenceFunction · 0.85
peg$c75Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…