MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseATTRIBUTE

Function peg$parseATTRIBUTE

lib/parser.js:2615–2677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2613 }
2614
2615 function peg$parseATTRIBUTE() {
2616 var s0, s1, s2, s3, s4, s5, s6;
2617
2618 peg$silentFails++;
2619 s0 = peg$currPos;
2620 s1 = peg$parseATTRIBUTE_NAME();
2621 if (s1 !== peg$FAILED) {
2622 s2 = peg$currPos;
2623 s3 = peg$parse_();
2624 if (s3 !== peg$FAILED) {
2625 if (input.charCodeAt(peg$currPos) === 61) {
2626 s4 = peg$c60;
2627 peg$currPos++;
2628 } else {
2629 s4 = peg$FAILED;
2630 if (peg$silentFails === 0) { peg$fail(peg$c61); }
2631 }
2632 if (s4 !== peg$FAILED) {
2633 s5 = peg$parse_();
2634 if (s5 !== peg$FAILED) {
2635 s6 = peg$parseATTRIBUTE_VALUE();
2636 if (s6 !== peg$FAILED) {
2637 s3 = [s3, s4, s5, s6];
2638 s2 = s3;
2639 } else {
2640 peg$currPos = s2;
2641 s2 = peg$c3;
2642 }
2643 } else {
2644 peg$currPos = s2;
2645 s2 = peg$c3;
2646 }
2647 } else {
2648 peg$currPos = s2;
2649 s2 = peg$c3;
2650 }
2651 } else {
2652 peg$currPos = s2;
2653 s2 = peg$c3;
2654 }
2655 if (s2 === peg$FAILED) {
2656 s2 = peg$c0;
2657 }
2658 if (s2 !== peg$FAILED) {
2659 peg$reportedPos = s0;
2660 s1 = peg$c63(s1, s2);
2661 s0 = s1;
2662 } else {
2663 peg$currPos = s0;
2664 s0 = peg$c3;
2665 }
2666 } else {
2667 peg$currPos = s0;
2668 s0 = peg$c3;
2669 }
2670 peg$silentFails--;
2671 if (s0 === peg$FAILED) {
2672 s1 = peg$FAILED;

Callers 1

peg$parseATTRIBUTESFunction · 0.85

Calls 5

peg$parseATTRIBUTE_NAMEFunction · 0.85
peg$parse_Function · 0.85
peg$failFunction · 0.85
peg$parseATTRIBUTE_VALUEFunction · 0.85
peg$c63Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…