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

Function peg$parseClassToken

lib/parser.js:6381–6416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6379 }
6380
6381 function peg$parseClassToken() {
6382 var s0, s1, s2, s3;
6383
6384 s0 = peg$currPos;
6385 if (input.substr(peg$currPos, 5) === peg$c264) {
6386 s1 = peg$c264;
6387 peg$currPos += 5;
6388 } else {
6389 s1 = peg$FAILED;
6390 if (peg$silentFails === 0) { peg$fail(peg$c265); }
6391 }
6392 if (s1 !== peg$FAILED) {
6393 s2 = peg$currPos;
6394 peg$silentFails++;
6395 s3 = peg$parseIdentifierPart();
6396 peg$silentFails--;
6397 if (s3 === peg$FAILED) {
6398 s2 = peg$c5;
6399 } else {
6400 peg$currPos = s2;
6401 s2 = peg$c3;
6402 }
6403 if (s2 !== peg$FAILED) {
6404 s1 = [s1, s2];
6405 s0 = s1;
6406 } else {
6407 peg$currPos = s0;
6408 s0 = peg$c3;
6409 }
6410 } else {
6411 peg$currPos = s0;
6412 s0 = peg$c3;
6413 }
6414
6415 return s0;
6416 }
6417
6418 function peg$parseConstToken() {
6419 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…