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

Function peg$parsePatternElementTail

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

Source from the content-addressed store, hash-verified

6276 }
6277
6278 function peg$parsePatternElementTail() {
6279 let s0, s1, s2;
6280
6281 s0 = peg$parseEdgeAndNodePattern();
6282 if (s0 === peg$FAILED) {
6283 s0 = peg$currPos;
6284 s1 = peg$parse_();
6285 s2 = peg$parseParenthesizedPathPattern();
6286 if (s2 !== peg$FAILED) {
6287 peg$savedPos = s0;
6288 s0 = peg$f93(s2);
6289 } else {
6290 peg$currPos = s0;
6291 s0 = peg$FAILED;
6292 }
6293 }
6294
6295 return s0;
6296 }
6297
6298 function peg$parseEdgeAndNodePattern() {
6299 let s0, s1, s2, s3, s4;

Callers 1

peg$parsePatternSequenceFunction · 0.85

Calls 4

peg$parse_Function · 0.85
peg$f93Function · 0.85

Tested by

no test coverage detected