MCPcopy Create free account
hub / github.com/codemix/graph / peg$parseCOLLECT

Function peg$parseCOLLECT

packages/graph/src/grammar.js:14213–14248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14211 }
14212
14213 function peg$parseCOLLECT() {
14214 let s0, s1, s2, s3;
14215
14216 s0 = peg$currPos;
14217 s1 = input.substr(peg$currPos, 7);
14218 if (s1.toLowerCase() === peg$c45) {
14219 peg$currPos += (7);
14220 } else {
14221 s1 = peg$FAILED;
14222 if (peg$silentFails === 0) { peg$fail(peg$e50); }
14223 }
14224 if (s1 !== peg$FAILED) {
14225 s2 = peg$currPos;
14226 peg$silentFails++;
14227 s3 = peg$parseIdentifierPart();
14228 peg$silentFails--;
14229 if (s3 === peg$FAILED) {
14230 s2 = undefined;
14231 } else {
14232 peg$currPos = s2;
14233 s2 = peg$FAILED;
14234 }
14235 if (s2 !== peg$FAILED) {
14236 s1 = [s1, s2];
14237 s0 = s1;
14238 } else {
14239 peg$currPos = s0;
14240 s0 = peg$FAILED;
14241 }
14242 } else {
14243 peg$currPos = s0;
14244 s0 = peg$FAILED;
14245 }
14246
14247 return s0;
14248 }
14249
14250 function peg$parseSTDEV() {
14251 let s0, s1, s2, s3;

Callers 3

peg$parseWithExpressionFunction · 0.85
peg$parseReturnItemFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected