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

Function peg$parseIN

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

Source from the content-addressed store, hash-verified

15136 }
15137
15138 function peg$parseIN() {
15139 let s0, s1, s2, s3;
15140
15141 s0 = peg$currPos;
15142 s1 = input.substr(peg$currPos, 2);
15143 if (s1.toLowerCase() === peg$c70) {
15144 peg$currPos += (2);
15145 } else {
15146 s1 = peg$FAILED;
15147 if (peg$silentFails === 0) { peg$fail(peg$e75); }
15148 }
15149 if (s1 !== peg$FAILED) {
15150 s2 = peg$currPos;
15151 peg$silentFails++;
15152 s3 = peg$parseIdentifierPart();
15153 peg$silentFails--;
15154 if (s3 === peg$FAILED) {
15155 s2 = undefined;
15156 } else {
15157 peg$currPos = s2;
15158 s2 = peg$FAILED;
15159 }
15160 if (s2 !== peg$FAILED) {
15161 s1 = [s1, s2];
15162 s0 = s1;
15163 } else {
15164 peg$currPos = s0;
15165 s0 = peg$FAILED;
15166 }
15167 } else {
15168 peg$currPos = s0;
15169 s0 = peg$FAILED;
15170 }
15171
15172 return s0;
15173 }
15174
15175 function peg$parseIS() {
15176 let s0, s1, s2, s3;

Callers 8

peg$parseForeachClauseFunction · 0.85
peg$parseInConditionFunction · 0.85
peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected