MCPcopy Create free account
hub / github.com/pegjs/pegjs / peg$parseSuffixedOperator

Function peg$parseSuffixedOperator

lib/parser.js:1150–1180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1148 }
1149
1150 function peg$parseSuffixedOperator() {
1151 var s0;
1152
1153 if (input.charCodeAt(peg$currPos) === 63) {
1154 s0 = peg$c21;
1155 peg$currPos++;
1156 } else {
1157 s0 = peg$FAILED;
1158 if (peg$silentFails === 0) { peg$fail(peg$c22); }
1159 }
1160 if (s0 === peg$FAILED) {
1161 if (input.charCodeAt(peg$currPos) === 42) {
1162 s0 = peg$c23;
1163 peg$currPos++;
1164 } else {
1165 s0 = peg$FAILED;
1166 if (peg$silentFails === 0) { peg$fail(peg$c24); }
1167 }
1168 if (s0 === peg$FAILED) {
1169 if (input.charCodeAt(peg$currPos) === 43) {
1170 s0 = peg$c25;
1171 peg$currPos++;
1172 } else {
1173 s0 = peg$FAILED;
1174 if (peg$silentFails === 0) { peg$fail(peg$c26); }
1175 }
1176 }
1177 }
1178
1179 return s0;
1180 }
1181
1182 function peg$parsePrimaryExpression() {
1183 var s0, s1, s2, s3, s4, s5;

Callers 1

Calls 1

peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…