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

Function peg$parseRuleReferenceExpression

lib/parser.js:1250–1323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1248 }
1249
1250 function peg$parseRuleReferenceExpression() {
1251 var s0, s1, s2, s3, s4, s5, s6, s7;
1252
1253 s0 = peg$currPos;
1254 s1 = peg$parseIdentifierName();
1255 if (s1 !== peg$FAILED) {
1256 s2 = peg$currPos;
1257 peg$silentFails++;
1258 s3 = peg$currPos;
1259 s4 = peg$parse__();
1260 if (s4 !== peg$FAILED) {
1261 s5 = peg$currPos;
1262 s6 = peg$parseStringLiteral();
1263 if (s6 !== peg$FAILED) {
1264 s7 = peg$parse__();
1265 if (s7 !== peg$FAILED) {
1266 s6 = [s6, s7];
1267 s5 = s6;
1268 } else {
1269 peg$currPos = s5;
1270 s5 = peg$FAILED;
1271 }
1272 } else {
1273 peg$currPos = s5;
1274 s5 = peg$FAILED;
1275 }
1276 if (s5 === peg$FAILED) {
1277 s5 = null;
1278 }
1279 if (s5 !== peg$FAILED) {
1280 if (input.charCodeAt(peg$currPos) === 61) {
1281 s6 = peg$c2;
1282 peg$currPos++;
1283 } else {
1284 s6 = peg$FAILED;
1285 if (peg$silentFails === 0) { peg$fail(peg$c3); }
1286 }
1287 if (s6 !== peg$FAILED) {
1288 s4 = [s4, s5, s6];
1289 s3 = s4;
1290 } else {
1291 peg$currPos = s3;
1292 s3 = peg$FAILED;
1293 }
1294 } else {
1295 peg$currPos = s3;
1296 s3 = peg$FAILED;
1297 }
1298 } else {
1299 peg$currPos = s3;
1300 s3 = peg$FAILED;
1301 }
1302 peg$silentFails--;
1303 if (s3 === peg$FAILED) {
1304 s2 = void 0;
1305 } else {
1306 peg$currPos = s2;
1307 s2 = peg$FAILED;

Callers 1

Calls 5

peg$parseIdentifierNameFunction · 0.85
peg$parse__Function · 0.85
peg$parseStringLiteralFunction · 0.85
peg$failFunction · 0.85
peg$c32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…