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

Function peg$parseExtendsToken

lib/parser.js:6751–6786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6749 }
6750
6751 function peg$parseExtendsToken() {
6752 var s0, s1, s2, s3;
6753
6754 s0 = peg$currPos;
6755 if (input.substr(peg$currPos, 7) === peg$c284) {
6756 s1 = peg$c284;
6757 peg$currPos += 7;
6758 } else {
6759 s1 = peg$FAILED;
6760 if (peg$silentFails === 0) { peg$fail(peg$c285); }
6761 }
6762 if (s1 !== peg$FAILED) {
6763 s2 = peg$currPos;
6764 peg$silentFails++;
6765 s3 = peg$parseIdentifierPart();
6766 peg$silentFails--;
6767 if (s3 === peg$FAILED) {
6768 s2 = peg$c5;
6769 } else {
6770 peg$currPos = s2;
6771 s2 = peg$c3;
6772 }
6773 if (s2 !== peg$FAILED) {
6774 s1 = [s1, s2];
6775 s0 = s1;
6776 } else {
6777 peg$currPos = s0;
6778 s0 = peg$c3;
6779 }
6780 } else {
6781 peg$currPos = s0;
6782 s0 = peg$c3;
6783 }
6784
6785 return s0;
6786 }
6787
6788 function peg$parseFalseToken() {
6789 var s0, s1, s2, s3;

Callers 1

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…