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

Function peg$parseSuperToken

lib/parser.js:7195–7230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7193 }
7194
7195 function peg$parseSuperToken() {
7196 var s0, s1, s2, s3;
7197
7198 s0 = peg$currPos;
7199 if (input.substr(peg$currPos, 5) === peg$c306) {
7200 s1 = peg$c306;
7201 peg$currPos += 5;
7202 } else {
7203 s1 = peg$FAILED;
7204 if (peg$silentFails === 0) { peg$fail(peg$c307); }
7205 }
7206 if (s1 !== peg$FAILED) {
7207 s2 = peg$currPos;
7208 peg$silentFails++;
7209 s3 = peg$parseIdentifierPart();
7210 peg$silentFails--;
7211 if (s3 === peg$FAILED) {
7212 s2 = peg$c5;
7213 } else {
7214 peg$currPos = s2;
7215 s2 = peg$c3;
7216 }
7217 if (s2 !== peg$FAILED) {
7218 s1 = [s1, s2];
7219 s0 = s1;
7220 } else {
7221 peg$currPos = s0;
7222 s0 = peg$c3;
7223 }
7224 } else {
7225 peg$currPos = s0;
7226 s0 = peg$c3;
7227 }
7228
7229 return s0;
7230 }
7231
7232 function peg$parseSwitchToken() {
7233 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…