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

Function peg$parseCONTENT_ELEMENT

lib/parser.js:1976–2051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1974 }
1975
1976 function peg$parseCONTENT_ELEMENT() {
1977 var s0, s1, s2, s3, s4, s5, s6;
1978
1979 peg$silentFails++;
1980 s0 = peg$currPos;
1981 if (input.substr(peg$currPos, 8) === peg$c44) {
1982 s1 = peg$c44;
1983 peg$currPos += 8;
1984 } else {
1985 s1 = peg$FAILED;
1986 if (peg$silentFails === 0) { peg$fail(peg$c45); }
1987 }
1988 if (s1 !== peg$FAILED) {
1989 s2 = peg$parseATTRIBUTES();
1990 if (s2 === peg$FAILED) {
1991 s2 = peg$c0;
1992 }
1993 if (s2 !== peg$FAILED) {
1994 s3 = peg$parse_();
1995 if (s3 !== peg$FAILED) {
1996 if (input.charCodeAt(peg$currPos) === 62) {
1997 s4 = peg$c21;
1998 peg$currPos++;
1999 } else {
2000 s4 = peg$FAILED;
2001 if (peg$silentFails === 0) { peg$fail(peg$c22); }
2002 }
2003 if (s4 !== peg$FAILED) {
2004 s5 = peg$parseHTML();
2005 if (s5 === peg$FAILED) {
2006 s5 = peg$c0;
2007 }
2008 if (s5 !== peg$FAILED) {
2009 if (input.substr(peg$currPos, 10) === peg$c8) {
2010 s6 = peg$c8;
2011 peg$currPos += 10;
2012 } else {
2013 s6 = peg$FAILED;
2014 if (peg$silentFails === 0) { peg$fail(peg$c9); }
2015 }
2016 if (s6 !== peg$FAILED) {
2017 peg$reportedPos = s0;
2018 s1 = peg$c46(s2, s5);
2019 s0 = s1;
2020 } else {
2021 peg$currPos = s0;
2022 s0 = peg$c3;
2023 }
2024 } else {
2025 peg$currPos = s0;
2026 s0 = peg$c3;
2027 }
2028 } else {
2029 peg$currPos = s0;
2030 s0 = peg$c3;
2031 }
2032 } else {
2033 peg$currPos = s0;

Callers 2

peg$parseHTMLFunction · 0.85
peg$parseRAWFunction · 0.85

Calls 5

peg$failFunction · 0.85
peg$parseATTRIBUTESFunction · 0.85
peg$parse_Function · 0.85
peg$parseHTMLFunction · 0.85
peg$c46Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…