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

Function peg$parseTEMPLATE_ELEMENT

lib/parser.js:1298–1406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1296 }
1297
1298 function peg$parseTEMPLATE_ELEMENT() {
1299 var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
1300
1301 peg$silentFails++;
1302 s0 = peg$currPos;
1303 if (input.substr(peg$currPos, 9) === peg$c18) {
1304 s1 = peg$c18;
1305 peg$currPos += 9;
1306 } else {
1307 s1 = peg$FAILED;
1308 if (peg$silentFails === 0) { peg$fail(peg$c19); }
1309 }
1310 if (s1 !== peg$FAILED) {
1311 s2 = peg$parseATTRIBUTES();
1312 if (s2 === peg$FAILED) {
1313 s2 = peg$c0;
1314 }
1315 if (s2 !== peg$FAILED) {
1316 peg$reportedPos = peg$currPos;
1317 s3 = peg$c20(s2);
1318 if (s3) {
1319 s3 = peg$c5;
1320 } else {
1321 s3 = peg$c3;
1322 }
1323 if (s3 !== peg$FAILED) {
1324 s4 = peg$parse_();
1325 if (s4 !== peg$FAILED) {
1326 if (input.charCodeAt(peg$currPos) === 62) {
1327 s5 = peg$c21;
1328 peg$currPos++;
1329 } else {
1330 s5 = peg$FAILED;
1331 if (peg$silentFails === 0) { peg$fail(peg$c22); }
1332 }
1333 if (s5 !== peg$FAILED) {
1334 s6 = peg$parse_();
1335 if (s6 !== peg$FAILED) {
1336 s7 = peg$parseHTML();
1337 if (s7 === peg$FAILED) {
1338 s7 = peg$c0;
1339 }
1340 if (s7 !== peg$FAILED) {
1341 s8 = peg$parse_();
1342 if (s8 !== peg$FAILED) {
1343 if (input.substr(peg$currPos, 11) === peg$c6) {
1344 s9 = peg$c6;
1345 peg$currPos += 11;
1346 } else {
1347 s9 = peg$FAILED;
1348 if (peg$silentFails === 0) { peg$fail(peg$c7); }
1349 }
1350 if (s9 !== peg$FAILED) {
1351 peg$reportedPos = s0;
1352 s1 = peg$c23(s2, s7);
1353 s0 = s1;
1354 } else {
1355 peg$currPos = s0;

Callers 2

peg$parseHTMLFunction · 0.85
peg$parseRAWFunction · 0.85

Calls 8

peg$failFunction · 0.85
peg$parseATTRIBUTESFunction · 0.85
peg$c20Function · 0.85
peg$parse_Function · 0.85
peg$parseHTMLFunction · 0.85
peg$c23Function · 0.85
peg$parseMUTE_TEMPLATEFunction · 0.85
peg$c24Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…