MCPcopy Create free account
hub / github.com/codemix/graph / peg$parseDoubleQuoteChar

Function peg$parseDoubleQuoteChar

packages/graph/src/grammar.js:16573–16637  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16571 }
16572
16573 function peg$parseDoubleQuoteChar() {
16574 let s0, s1, s2;
16575
16576 s0 = peg$currPos;
16577 s1 = peg$currPos;
16578 peg$silentFails++;
16579 s2 = input.charAt(peg$currPos);
16580 if (peg$r5.test(s2)) {
16581 peg$currPos++;
16582 } else {
16583 s2 = peg$FAILED;
16584 if (peg$silentFails === 0) { peg$fail(peg$e110); }
16585 }
16586 peg$silentFails--;
16587 if (s2 === peg$FAILED) {
16588 s1 = undefined;
16589 } else {
16590 peg$currPos = s1;
16591 s1 = peg$FAILED;
16592 }
16593 if (s1 !== peg$FAILED) {
16594 if (input.length > peg$currPos) {
16595 s2 = input.charAt(peg$currPos);
16596 peg$currPos++;
16597 } else {
16598 s2 = peg$FAILED;
16599 if (peg$silentFails === 0) { peg$fail(peg$e111); }
16600 }
16601 if (s2 !== peg$FAILED) {
16602 peg$savedPos = s0;
16603 s0 = peg$f266(s2);
16604 } else {
16605 peg$currPos = s0;
16606 s0 = peg$FAILED;
16607 }
16608 } else {
16609 peg$currPos = s0;
16610 s0 = peg$FAILED;
16611 }
16612 if (s0 === peg$FAILED) {
16613 s0 = peg$currPos;
16614 if (input.charCodeAt(peg$currPos) === 92) {
16615 s1 = peg$c105;
16616 peg$currPos++;
16617 } else {
16618 s1 = peg$FAILED;
16619 if (peg$silentFails === 0) { peg$fail(peg$e112); }
16620 }
16621 if (s1 !== peg$FAILED) {
16622 s2 = peg$parseEscapeSequence();
16623 if (s2 !== peg$FAILED) {
16624 peg$savedPos = s0;
16625 s0 = peg$f267(s2);
16626 } else {
16627 peg$currPos = s0;
16628 s0 = peg$FAILED;
16629 }
16630 } else {

Callers 1

peg$parseStringLiteralFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$f266Function · 0.85
peg$parseEscapeSequenceFunction · 0.85
peg$f267Function · 0.85

Tested by

no test coverage detected