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

Function peg$parseLabeledExpression

lib/parser.js:1004–1052  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1002 }
1003
1004 function peg$parseLabeledExpression() {
1005 var s0, s1, s2, s3, s4, s5;
1006
1007 s0 = peg$currPos;
1008 s1 = peg$parseIdentifier();
1009 if (s1 !== peg$FAILED) {
1010 s2 = peg$parse__();
1011 if (s2 !== peg$FAILED) {
1012 if (input.charCodeAt(peg$currPos) === 58) {
1013 s3 = peg$c10;
1014 peg$currPos++;
1015 } else {
1016 s3 = peg$FAILED;
1017 if (peg$silentFails === 0) { peg$fail(peg$c11); }
1018 }
1019 if (s3 !== peg$FAILED) {
1020 s4 = peg$parse__();
1021 if (s4 !== peg$FAILED) {
1022 s5 = peg$parsePrefixedExpression();
1023 if (s5 !== peg$FAILED) {
1024 peg$savedPos = s0;
1025 s1 = peg$c12(s1, s5);
1026 s0 = s1;
1027 } else {
1028 peg$currPos = s0;
1029 s0 = peg$FAILED;
1030 }
1031 } else {
1032 peg$currPos = s0;
1033 s0 = peg$FAILED;
1034 }
1035 } else {
1036 peg$currPos = s0;
1037 s0 = peg$FAILED;
1038 }
1039 } else {
1040 peg$currPos = s0;
1041 s0 = peg$FAILED;
1042 }
1043 } else {
1044 peg$currPos = s0;
1045 s0 = peg$FAILED;
1046 }
1047 if (s0 === peg$FAILED) {
1048 s0 = peg$parsePrefixedExpression();
1049 }
1050
1051 return s0;
1052 }
1053
1054 function peg$parsePrefixedExpression() {
1055 var s0, s1, s2, s3;

Callers 1

Calls 5

peg$parseIdentifierFunction · 0.85
peg$parse__Function · 0.85
peg$failFunction · 0.85
peg$c12Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…