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

Function peg$parseFUNCTION

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

Source from the content-addressed store, hash-verified

13562 }
13563
13564 function peg$parseFUNCTION() {
13565 var s0, s1, s2, s3;
13566
13567 peg$silentFails++;
13568 s0 = peg$currPos;
13569 s1 = [];
13570 s2 = peg$parsecomment();
13571 while (s2 !== peg$FAILED) {
13572 s1.push(s2);
13573 s2 = peg$parsecomment();
13574 }
13575 s2 = peg$parseident();
13576 if (s2 !== peg$FAILED) {
13577 if (input.charCodeAt(peg$currPos) === 40) {
13578 s3 = peg$c210;
13579 peg$currPos++;
13580 } else {
13581 s3 = peg$FAILED;
13582 if (peg$silentFails === 0) { peg$fail(peg$e264); }
13583 }
13584 if (s3 !== peg$FAILED) {
13585 peg$savedPos = s0;
13586 s0 = peg$f188(s2);
13587 } else {
13588 peg$currPos = s0;
13589 s0 = peg$FAILED;
13590 }
13591 } else {
13592 peg$currPos = s0;
13593 s0 = peg$FAILED;
13594 }
13595 peg$silentFails--;
13596 if (s0 === peg$FAILED) {
13597 s1 = peg$FAILED;
13598 if (peg$silentFails === 0) { peg$fail(peg$e263); }
13599 }
13600
13601 return s0;
13602 }
13603
13604 peg$result = peg$startRuleFunction();
13605

Callers 1

peg$parsefunctionFunction · 0.85

Calls 5

peg$parsecommentFunction · 0.85
peg$parseidentFunction · 0.85
peg$failFunction · 0.85
peg$f188Function · 0.85
pushMethod · 0.80

Tested by

no test coverage detected