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

Function peg$parseEnumToken

lib/parser.js:6677–6712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6675 }
6676
6677 function peg$parseEnumToken() {
6678 var s0, s1, s2, s3;
6679
6680 s0 = peg$currPos;
6681 if (input.substr(peg$currPos, 4) === peg$c280) {
6682 s1 = peg$c280;
6683 peg$currPos += 4;
6684 } else {
6685 s1 = peg$FAILED;
6686 if (peg$silentFails === 0) { peg$fail(peg$c281); }
6687 }
6688 if (s1 !== peg$FAILED) {
6689 s2 = peg$currPos;
6690 peg$silentFails++;
6691 s3 = peg$parseIdentifierPart();
6692 peg$silentFails--;
6693 if (s3 === peg$FAILED) {
6694 s2 = peg$c5;
6695 } else {
6696 peg$currPos = s2;
6697 s2 = peg$c3;
6698 }
6699 if (s2 !== peg$FAILED) {
6700 s1 = [s1, s2];
6701 s0 = s1;
6702 } else {
6703 peg$currPos = s0;
6704 s0 = peg$c3;
6705 }
6706 } else {
6707 peg$currPos = s0;
6708 s0 = peg$c3;
6709 }
6710
6711 return s0;
6712 }
6713
6714 function peg$parseExportToken() {
6715 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…