MCPcopy Index your code
hub / github.com/pegjs/pegjs / expected

Function expected

lib/parser.js:523–531  ·  view source on GitHub ↗
(description, location)

Source from the content-addressed store, hash-verified

521 }
522
523 function expected(description, location) {
524 location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
525
526 throw peg$buildStructuredError(
527 [peg$otherExpectation(description)],
528 input.substring(peg$savedPos, peg$currPos),
529 location
530 );
531 }
532
533 function error(message, location) {
534 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…