MCPcopy Create free account
hub / github.com/estools/esquery / peg$parseattrEqOps

Function peg$parseattrEqOps

parser.js:1295–1342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1293 }
1294
1295 function peg$parseattrEqOps() {
1296 var s0, s1, s2;
1297
1298 var key = peg$currPos * 32 + 14,
1299 cached = peg$resultsCache[key];
1300
1301 if (cached) {
1302 peg$currPos = cached.nextPos;
1303
1304 return cached.result;
1305 }
1306
1307 s0 = peg$currPos;
1308 if (input.charCodeAt(peg$currPos) === 33) {
1309 s1 = peg$c22;
1310 peg$currPos++;
1311 } else {
1312 s1 = peg$FAILED;
1313 if (peg$silentFails === 0) { peg$fail(peg$c23); }
1314 }
1315 if (s1 === peg$FAILED) {
1316 s1 = null;
1317 }
1318 if (s1 !== peg$FAILED) {
1319 if (input.charCodeAt(peg$currPos) === 61) {
1320 s2 = peg$c38;
1321 peg$currPos++;
1322 } else {
1323 s2 = peg$FAILED;
1324 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1325 }
1326 if (s2 !== peg$FAILED) {
1327 peg$savedPos = s0;
1328 s1 = peg$c40(s1);
1329 s0 = s1;
1330 } else {
1331 peg$currPos = s0;
1332 s0 = peg$FAILED;
1333 }
1334 } else {
1335 peg$currPos = s0;
1336 s0 = peg$FAILED;
1337 }
1338
1339 peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
1340
1341 return s0;
1342 }
1343
1344 function peg$parseattrName() {
1345 var s0, s1, s2, s3, s4, s5;

Callers 1

peg$parseattrValueFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$c40Function · 0.85

Tested by

no test coverage detected