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

Function peg$parseEOS

lib/parser.js:4875–4944  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4873 }
4874
4875 function peg$parseEOS() {
4876 var s0, s1, s2, s3;
4877
4878 s0 = peg$currPos;
4879 s1 = peg$parse__();
4880 if (s1 !== peg$FAILED) {
4881 if (input.charCodeAt(peg$currPos) === 59) {
4882 s2 = peg$c238;
4883 peg$currPos++;
4884 } else {
4885 s2 = peg$FAILED;
4886 if (peg$silentFails === 0) { peg$fail(peg$c239); }
4887 }
4888 if (s2 !== peg$FAILED) {
4889 s1 = [s1, s2];
4890 s0 = s1;
4891 } else {
4892 peg$currPos = s0;
4893 s0 = peg$FAILED;
4894 }
4895 } else {
4896 peg$currPos = s0;
4897 s0 = peg$FAILED;
4898 }
4899 if (s0 === peg$FAILED) {
4900 s0 = peg$currPos;
4901 s1 = peg$parse_();
4902 if (s1 !== peg$FAILED) {
4903 s2 = peg$parseSingleLineComment();
4904 if (s2 === peg$FAILED) {
4905 s2 = null;
4906 }
4907 if (s2 !== peg$FAILED) {
4908 s3 = peg$parseLineTerminatorSequence();
4909 if (s3 !== peg$FAILED) {
4910 s1 = [s1, s2, s3];
4911 s0 = s1;
4912 } else {
4913 peg$currPos = s0;
4914 s0 = peg$FAILED;
4915 }
4916 } else {
4917 peg$currPos = s0;
4918 s0 = peg$FAILED;
4919 }
4920 } else {
4921 peg$currPos = s0;
4922 s0 = peg$FAILED;
4923 }
4924 if (s0 === peg$FAILED) {
4925 s0 = peg$currPos;
4926 s1 = peg$parse__();
4927 if (s1 !== peg$FAILED) {
4928 s2 = peg$parseEOF();
4929 if (s2 !== peg$FAILED) {
4930 s1 = [s1, s2];
4931 s0 = s1;
4932 } else {

Callers 2

peg$parseInitializerFunction · 0.85
peg$parseRuleFunction · 0.85

Calls 6

peg$parse__Function · 0.85
peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseEOFFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…