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

Function peg$parseUnwindExpression

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

Source from the content-addressed store, hash-verified

5026 }
5027
5028 function peg$parseUnwindExpression() {
5029 let s0, s1, s2, s3, s4, s5;
5030
5031 s0 = peg$currPos;
5032 s1 = peg$parseNullLiteral();
5033 if (s1 !== peg$FAILED) {
5034 peg$savedPos = s0;
5035 s1 = peg$f62();
5036 }
5037 s0 = s1;
5038 if (s0 === peg$FAILED) {
5039 s0 = peg$parseListLiteralExpr();
5040 if (s0 === peg$FAILED) {
5041 s0 = peg$parseParameterRef();
5042 if (s0 === peg$FAILED) {
5043 s0 = peg$parseFunctionCallExpression();
5044 if (s0 === peg$FAILED) {
5045 s0 = peg$currPos;
5046 if (input.charCodeAt(peg$currPos) === 40) {
5047 s1 = peg$c4;
5048 peg$currPos++;
5049 } else {
5050 s1 = peg$FAILED;
5051 if (peg$silentFails === 0) { peg$fail(peg$e4); }
5052 }
5053 if (s1 !== peg$FAILED) {
5054 s2 = peg$parse_();
5055 s3 = peg$parseArithmeticExpression();
5056 if (s3 !== peg$FAILED) {
5057 s4 = peg$parse_();
5058 if (input.charCodeAt(peg$currPos) === 41) {
5059 s5 = peg$c5;
5060 peg$currPos++;
5061 } else {
5062 s5 = peg$FAILED;
5063 if (peg$silentFails === 0) { peg$fail(peg$e5); }
5064 }
5065 if (s5 !== peg$FAILED) {
5066 peg$savedPos = s0;
5067 s0 = peg$f63(s3);
5068 } else {
5069 peg$currPos = s0;
5070 s0 = peg$FAILED;
5071 }
5072 } else {
5073 peg$currPos = s0;
5074 s0 = peg$FAILED;
5075 }
5076 } else {
5077 peg$currPos = s0;
5078 s0 = peg$FAILED;
5079 }
5080 if (s0 === peg$FAILED) {
5081 s0 = peg$currPos;
5082 s1 = peg$parseExpressionIdentifier();
5083 if (s1 !== peg$FAILED) {
5084 if (input.charCodeAt(peg$currPos) === 46) {
5085 s2 = peg$c2;

Callers 1

peg$parseUnwindClauseFunction · 0.85

Calls 13

peg$parseNullLiteralFunction · 0.85
peg$f62Function · 0.85
peg$parseListLiteralExprFunction · 0.85
peg$parseParameterRefFunction · 0.85
peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$f63Function · 0.85
peg$f64Function · 0.85

Tested by

no test coverage detected