MCPcopy Create free account
hub / github.com/chearon/dropflow / peg$parseNUMBER

Function peg$parseNUMBER

src/parse-css.js:13380–13406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13378 }
13379
13380 function peg$parseNUMBER() {
13381 var s0, s1, s2;
13382
13383 peg$silentFails++;
13384 s0 = peg$currPos;
13385 s1 = [];
13386 s2 = peg$parsecomment();
13387 while (s2 !== peg$FAILED) {
13388 s1.push(s2);
13389 s2 = peg$parsecomment();
13390 }
13391 s2 = peg$parsenum();
13392 if (s2 !== peg$FAILED) {
13393 peg$savedPos = s0;
13394 s0 = peg$f184(s2);
13395 } else {
13396 peg$currPos = s0;
13397 s0 = peg$FAILED;
13398 }
13399 peg$silentFails--;
13400 if (s0 === peg$FAILED) {
13401 s1 = peg$FAILED;
13402 if (peg$silentFails === 0) { peg$fail(peg$e260); }
13403 }
13404
13405 return s0;
13406 }
13407
13408 function peg$parseNUMBER_UNIT() {
13409 var s0, s1, s2;

Callers 4

peg$parsetermFunction · 0.85
peg$parsetab_sizeFunction · 0.85
peg$parsez_index_decFunction · 0.85
peg$parsezoom_decFunction · 0.85

Calls 5

peg$parsecommentFunction · 0.85
peg$parsenumFunction · 0.85
peg$f184Function · 0.85
peg$failFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected