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

Function peg$parseCustomElementName

lib/parser.js:1799–1833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1797 }
1798
1799 function peg$parseCustomElementName() {
1800 var s0, s1, s2, s3, s4;
1801
1802 s0 = peg$currPos;
1803 s1 = peg$currPos;
1804 s2 = peg$parseCustomElementStart();
1805 if (s2 !== peg$FAILED) {
1806 s3 = [];
1807 s4 = peg$parseCustomElementPart();
1808 if (s4 !== peg$FAILED) {
1809 while (s4 !== peg$FAILED) {
1810 s3.push(s4);
1811 s4 = peg$parseCustomElementPart();
1812 }
1813 } else {
1814 s3 = peg$c3;
1815 }
1816 if (s3 !== peg$FAILED) {
1817 s2 = [s2, s3];
1818 s1 = s2;
1819 } else {
1820 peg$currPos = s1;
1821 s1 = peg$c3;
1822 }
1823 } else {
1824 peg$currPos = s1;
1825 s1 = peg$c3;
1826 }
1827 if (s1 !== peg$FAILED) {
1828 s1 = input.substring(s0, peg$currPos);
1829 }
1830 s0 = s1;
1831
1832 return s0;
1833 }
1834
1835 function peg$parseCustomElementStart() {
1836 var s0, s1, s2;

Callers 2

peg$parseCUSTOM_ELEMENTFunction · 0.85

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…