MCPcopy Create free account
hub / github.com/TruthHun/BookStack / describeTokenMismatch

Function describeTokenMismatch

static/word2md/mammoth.browser.js:15655–15671  ·  view source on GitHub ↗
(input, expected)

Source from the content-addressed store, hash-verified

15653};
15654
15655function describeTokenMismatch(input, expected) {
15656 var error;
15657 var token = input.head();
15658 if (token) {
15659 error = errors.error({
15660 expected: expected,
15661 actual: describeToken(token),
15662 location: token.source
15663 });
15664 } else {
15665 error = errors.error({
15666 expected: expected,
15667 actual: "end of tokens"
15668 });
15669 }
15670 return results.failure([error], input);
15671}
15672
15673},{"./errors":112,"./lazy-iterators":113,"./parsing-results":115,"option":119,"underscore":118}],118:[function(require,module,exports){
15674// Underscore.js 1.4.4

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

describeTokenFunction · 0.70

Tested by

no test coverage detected