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

Function peg$parseATTRIBUTE_VALUE

lib/parser.js:2729–2834  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2727 }
2728
2729 function peg$parseATTRIBUTE_VALUE() {
2730 var s0, s1, s2, s3, s4, s5;
2731
2732 s0 = peg$currPos;
2733 if (input.charCodeAt(peg$currPos) === 34) {
2734 s1 = peg$c68;
2735 peg$currPos++;
2736 } else {
2737 s1 = peg$FAILED;
2738 if (peg$silentFails === 0) { peg$fail(peg$c69); }
2739 }
2740 if (s1 !== peg$FAILED) {
2741 s2 = peg$parse_();
2742 if (s2 !== peg$FAILED) {
2743 s3 = peg$parseEXPRESSION();
2744 if (s3 !== peg$FAILED) {
2745 s4 = peg$parse_();
2746 if (s4 !== peg$FAILED) {
2747 if (input.charCodeAt(peg$currPos) === 34) {
2748 s5 = peg$c68;
2749 peg$currPos++;
2750 } else {
2751 s5 = peg$FAILED;
2752 if (peg$silentFails === 0) { peg$fail(peg$c69); }
2753 }
2754 if (s5 !== peg$FAILED) {
2755 peg$reportedPos = s0;
2756 s1 = peg$c70(s3);
2757 s0 = s1;
2758 } else {
2759 peg$currPos = s0;
2760 s0 = peg$c3;
2761 }
2762 } else {
2763 peg$currPos = s0;
2764 s0 = peg$c3;
2765 }
2766 } else {
2767 peg$currPos = s0;
2768 s0 = peg$c3;
2769 }
2770 } else {
2771 peg$currPos = s0;
2772 s0 = peg$c3;
2773 }
2774 } else {
2775 peg$currPos = s0;
2776 s0 = peg$c3;
2777 }
2778 if (s0 === peg$FAILED) {
2779 s0 = peg$currPos;
2780 if (input.charCodeAt(peg$currPos) === 39) {
2781 s1 = peg$c71;
2782 peg$currPos++;
2783 } else {
2784 s1 = peg$FAILED;
2785 if (peg$silentFails === 0) { peg$fail(peg$c72); }
2786 }

Callers 1

peg$parseATTRIBUTEFunction · 0.85

Calls 6

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseEXPRESSIONFunction · 0.85
peg$c70Function · 0.85
peg$parseSTRINGFunction · 0.85
peg$parseIdentifierNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…