MCPcopy Create free account
hub / github.com/codemix/graph / expected

Function expected

packages/graph/src/grammar.js:2372–2382  ·  view source on GitHub ↗
(description, location)

Source from the content-addressed store, hash-verified

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

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