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

Function peg$parseALLSHORTESTPATHS

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

Source from the content-addressed store, hash-verified

15284 }
15285
15286 function peg$parseALLSHORTESTPATHS() {
15287 let s0, s1, s2, s3;
15288
15289 s0 = peg$currPos;
15290 s1 = input.substr(peg$currPos, 16);
15291 if (s1.toLowerCase() === peg$c74) {
15292 peg$currPos += (16);
15293 } else {
15294 s1 = peg$FAILED;
15295 if (peg$silentFails === 0) { peg$fail(peg$e79); }
15296 }
15297 if (s1 !== peg$FAILED) {
15298 s2 = peg$currPos;
15299 peg$silentFails++;
15300 s3 = peg$parseIdentifierPart();
15301 peg$silentFails--;
15302 if (s3 === peg$FAILED) {
15303 s2 = undefined;
15304 } else {
15305 peg$currPos = s2;
15306 s2 = peg$FAILED;
15307 }
15308 if (s2 !== peg$FAILED) {
15309 s1 = [s1, s2];
15310 s0 = s1;
15311 } else {
15312 peg$currPos = s0;
15313 s0 = peg$FAILED;
15314 }
15315 } else {
15316 peg$currPos = s0;
15317 s0 = peg$FAILED;
15318 }
15319
15320 return s0;
15321 }
15322
15323 function peg$parseSTARTS() {
15324 let s0, s1, s2, s3;

Callers 2

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected