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

Function peg$parseWhiteSpace

lib/parser.js:1391–1457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1389 }
1390
1391 function peg$parseWhiteSpace() {
1392 var s0, s1;
1393
1394 peg$silentFails++;
1395 if (input.charCodeAt(peg$currPos) === 9) {
1396 s0 = peg$c36;
1397 peg$currPos++;
1398 } else {
1399 s0 = peg$FAILED;
1400 if (peg$silentFails === 0) { peg$fail(peg$c37); }
1401 }
1402 if (s0 === peg$FAILED) {
1403 if (input.charCodeAt(peg$currPos) === 11) {
1404 s0 = peg$c38;
1405 peg$currPos++;
1406 } else {
1407 s0 = peg$FAILED;
1408 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1409 }
1410 if (s0 === peg$FAILED) {
1411 if (input.charCodeAt(peg$currPos) === 12) {
1412 s0 = peg$c40;
1413 peg$currPos++;
1414 } else {
1415 s0 = peg$FAILED;
1416 if (peg$silentFails === 0) { peg$fail(peg$c41); }
1417 }
1418 if (s0 === peg$FAILED) {
1419 if (input.charCodeAt(peg$currPos) === 32) {
1420 s0 = peg$c42;
1421 peg$currPos++;
1422 } else {
1423 s0 = peg$FAILED;
1424 if (peg$silentFails === 0) { peg$fail(peg$c43); }
1425 }
1426 if (s0 === peg$FAILED) {
1427 if (input.charCodeAt(peg$currPos) === 160) {
1428 s0 = peg$c44;
1429 peg$currPos++;
1430 } else {
1431 s0 = peg$FAILED;
1432 if (peg$silentFails === 0) { peg$fail(peg$c45); }
1433 }
1434 if (s0 === peg$FAILED) {
1435 if (input.charCodeAt(peg$currPos) === 65279) {
1436 s0 = peg$c46;
1437 peg$currPos++;
1438 } else {
1439 s0 = peg$FAILED;
1440 if (peg$silentFails === 0) { peg$fail(peg$c47); }
1441 }
1442 if (s0 === peg$FAILED) {
1443 s0 = peg$parseZs();
1444 }
1445 }
1446 }
1447 }
1448 }

Callers 2

peg$parse__Function · 0.85
peg$parse_Function · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseZsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…