(description, location)
| 2370 | } |
| 2371 | |
| 2372 | function expected(description, location) { |
| 2373 | location = location !== undefined |
| 2374 | ? location |
| 2375 | : peg$computeLocation(peg$savedPos, peg$currPos); |
| 2376 | |
| 2377 | throw peg$buildStructuredError( |
| 2378 | [peg$otherExpectation(description)], |
| 2379 | input.substring(peg$savedPos, peg$currPos), |
| 2380 | location |
| 2381 | ); |
| 2382 | } |
| 2383 | |
| 2384 | function error(message, location) { |
| 2385 | location = location !== undefined |
nothing calls this directly
no test coverage detected