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

Function peg$parseSequenceExpression

lib/parser.js:948–1002  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

946 }
947
948 function peg$parseSequenceExpression() {
949 var s0, s1, s2, s3, s4, s5;
950
951 s0 = peg$currPos;
952 s1 = peg$parseLabeledExpression();
953 if (s1 !== peg$FAILED) {
954 s2 = [];
955 s3 = peg$currPos;
956 s4 = peg$parse__();
957 if (s4 !== peg$FAILED) {
958 s5 = peg$parseLabeledExpression();
959 if (s5 !== peg$FAILED) {
960 s4 = [s4, s5];
961 s3 = s4;
962 } else {
963 peg$currPos = s3;
964 s3 = peg$FAILED;
965 }
966 } else {
967 peg$currPos = s3;
968 s3 = peg$FAILED;
969 }
970 while (s3 !== peg$FAILED) {
971 s2.push(s3);
972 s3 = peg$currPos;
973 s4 = peg$parse__();
974 if (s4 !== peg$FAILED) {
975 s5 = peg$parseLabeledExpression();
976 if (s5 !== peg$FAILED) {
977 s4 = [s4, s5];
978 s3 = s4;
979 } else {
980 peg$currPos = s3;
981 s3 = peg$FAILED;
982 }
983 } else {
984 peg$currPos = s3;
985 s3 = peg$FAILED;
986 }
987 }
988 if (s2 !== peg$FAILED) {
989 peg$savedPos = s0;
990 s1 = peg$c9(s1, s2);
991 s0 = s1;
992 } else {
993 peg$currPos = s0;
994 s0 = peg$FAILED;
995 }
996 } else {
997 peg$currPos = s0;
998 s0 = peg$FAILED;
999 }
1000
1001 return s0;
1002 }
1003
1004 function peg$parseLabeledExpression() {
1005 var s0, s1, s2, s3, s4, s5;

Callers 1

Calls 3

peg$parse__Function · 0.85
peg$c9Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…