MCPcopy Create free account
hub / github.com/estools/esquery / expected

Function expected

parser.js:313–321  ·  view source on GitHub ↗
(description, location)

Source from the content-addressed store, hash-verified

311 }
312
313 function expected(description, location) {
314 location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
315
316 throw peg$buildStructuredError(
317 [peg$otherExpectation(description)],
318 input.substring(peg$savedPos, peg$currPos),
319 location
320 );
321 }
322
323 function error(message, location) {
324 location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)

Callers

nothing calls this directly

Calls 3

peg$computeLocationFunction · 0.85
peg$buildStructuredErrorFunction · 0.85
peg$otherExpectationFunction · 0.85

Tested by

no test coverage detected