MCPcopy Create free account
hub / github.com/estools/esquery / peg$parseattrValue

Function peg$parseattrValue

parser.js:1423–1527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1421 }
1422
1423 function peg$parseattrValue() {
1424 var s0, s1, s2, s3, s4, s5;
1425
1426 var key = peg$currPos * 32 + 16,
1427 cached = peg$resultsCache[key];
1428
1429 if (cached) {
1430 peg$currPos = cached.nextPos;
1431
1432 return cached.result;
1433 }
1434
1435 s0 = peg$currPos;
1436 s1 = peg$parseattrName();
1437 if (s1 !== peg$FAILED) {
1438 s2 = peg$parse_();
1439 if (s2 !== peg$FAILED) {
1440 s3 = peg$parseattrEqOps();
1441 if (s3 !== peg$FAILED) {
1442 s4 = peg$parse_();
1443 if (s4 !== peg$FAILED) {
1444 s5 = peg$parsetype();
1445 if (s5 === peg$FAILED) {
1446 s5 = peg$parseregex();
1447 }
1448 if (s5 !== peg$FAILED) {
1449 peg$savedPos = s0;
1450 s1 = peg$c46(s1, s3, s5);
1451 s0 = s1;
1452 } else {
1453 peg$currPos = s0;
1454 s0 = peg$FAILED;
1455 }
1456 } else {
1457 peg$currPos = s0;
1458 s0 = peg$FAILED;
1459 }
1460 } else {
1461 peg$currPos = s0;
1462 s0 = peg$FAILED;
1463 }
1464 } else {
1465 peg$currPos = s0;
1466 s0 = peg$FAILED;
1467 }
1468 } else {
1469 peg$currPos = s0;
1470 s0 = peg$FAILED;
1471 }
1472 if (s0 === peg$FAILED) {
1473 s0 = peg$currPos;
1474 s1 = peg$parseattrName();
1475 if (s1 !== peg$FAILED) {
1476 s2 = peg$parse_();
1477 if (s2 !== peg$FAILED) {
1478 s3 = peg$parseattrOps();
1479 if (s3 !== peg$FAILED) {
1480 s4 = peg$parse_();

Callers 1

peg$parseattrFunction · 0.85

Calls 11

peg$parseattrNameFunction · 0.85
peg$parse_Function · 0.85
peg$parseattrEqOpsFunction · 0.85
peg$parsetypeFunction · 0.85
peg$parseregexFunction · 0.85
peg$c46Function · 0.85
peg$parseattrOpsFunction · 0.85
peg$parsestringFunction · 0.85
peg$parsenumberFunction · 0.85
peg$parsepathFunction · 0.85
peg$c47Function · 0.85

Tested by

no test coverage detected