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

Function peg$parseattr

parser.js:1173–1235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1171 }
1172
1173 function peg$parseattr() {
1174 var s0, s1, s2, s3, s4, s5;
1175
1176 var key = peg$currPos * 32 + 12,
1177 cached = peg$resultsCache[key];
1178
1179 if (cached) {
1180 peg$currPos = cached.nextPos;
1181
1182 return cached.result;
1183 }
1184
1185 s0 = peg$currPos;
1186 if (input.charCodeAt(peg$currPos) === 91) {
1187 s1 = peg$c31;
1188 peg$currPos++;
1189 } else {
1190 s1 = peg$FAILED;
1191 if (peg$silentFails === 0) { peg$fail(peg$c32); }
1192 }
1193 if (s1 !== peg$FAILED) {
1194 s2 = peg$parse_();
1195 if (s2 !== peg$FAILED) {
1196 s3 = peg$parseattrValue();
1197 if (s3 !== peg$FAILED) {
1198 s4 = peg$parse_();
1199 if (s4 !== peg$FAILED) {
1200 if (input.charCodeAt(peg$currPos) === 93) {
1201 s5 = peg$c33;
1202 peg$currPos++;
1203 } else {
1204 s5 = peg$FAILED;
1205 if (peg$silentFails === 0) { peg$fail(peg$c34); }
1206 }
1207 if (s5 !== peg$FAILED) {
1208 peg$savedPos = s0;
1209 s1 = peg$c35(s3);
1210 s0 = s1;
1211 } else {
1212 peg$currPos = s0;
1213 s0 = peg$FAILED;
1214 }
1215 } else {
1216 peg$currPos = s0;
1217 s0 = peg$FAILED;
1218 }
1219 } else {
1220 peg$currPos = s0;
1221 s0 = peg$FAILED;
1222 }
1223 } else {
1224 peg$currPos = s0;
1225 s0 = peg$FAILED;
1226 }
1227 } else {
1228 peg$currPos = s0;
1229 s0 = peg$FAILED;
1230 }

Callers 1

peg$parseatomFunction · 0.85

Calls 4

peg$failFunction · 0.85
peg$parse_Function · 0.85
peg$parseattrValueFunction · 0.85
peg$c35Function · 0.85

Tested by

no test coverage detected