()
| 1283 | } |
| 1284 | |
| 1285 | function parse_NamedToken() { |
| 1286 | var result0, result1, result2; |
| 1287 | var pos0, pos1; |
| 1288 | |
| 1289 | reportFailures++; |
| 1290 | pos0 = pos; |
| 1291 | pos1 = pos; |
| 1292 | if (input.charCodeAt(pos) === 58) { |
| 1293 | result0 = ":"; |
| 1294 | pos++; |
| 1295 | } else { |
| 1296 | result0 = null; |
| 1297 | if (reportFailures === 0) { |
| 1298 | matchFailed("\":\""); |
| 1299 | } |
| 1300 | } |
| 1301 | if (result0 !== null) { |
| 1302 | if (/^[^ ?]/.test(input.charAt(pos))) { |
| 1303 | result2 = input.charAt(pos); |
| 1304 | pos++; |
| 1305 | } else { |
| 1306 | result2 = null; |
| 1307 | if (reportFailures === 0) { |
| 1308 | matchFailed("[^ ?]"); |
| 1309 | } |
| 1310 | } |
| 1311 | if (result2 !== null) { |
| 1312 | result1 = []; |
| 1313 | while (result2 !== null) { |
| 1314 | result1.push(result2); |
| 1315 | if (/^[^ ?]/.test(input.charAt(pos))) { |
| 1316 | result2 = input.charAt(pos); |
| 1317 | pos++; |
| 1318 | } else { |
| 1319 | result2 = null; |
| 1320 | if (reportFailures === 0) { |
| 1321 | matchFailed("[^ ?]"); |
| 1322 | } |
| 1323 | } |
| 1324 | } |
| 1325 | } else { |
| 1326 | result1 = null; |
| 1327 | } |
| 1328 | if (result1 !== null) { |
| 1329 | result0 = [result0, result1]; |
| 1330 | } else { |
| 1331 | result0 = null; |
| 1332 | pos = pos1; |
| 1333 | } |
| 1334 | } else { |
| 1335 | result0 = null; |
| 1336 | pos = pos1; |
| 1337 | } |
| 1338 | if (result0 !== null) { |
| 1339 | result0 = (function(offset, name) { |
| 1340 | return { |
| 1341 | name: name.join("") |
| 1342 | } |
no test coverage detected