MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / raiseError

Method raiseError

src/core/parser.js:228–232  ·  view source on GitHub ↗
(message, expected)

Source from the content-addressed store, hash-verified

226 }
227
228 raiseError(message, expected) {
229 message = message || "Unexpected Token : " + this.currentToken().value;
230 var parseError = new ParseError(message, this.currentToken(), this.source, expected);
231 throw new ParseRecoverySentinel(parseError);
232 }
233
234 raiseExpected(...expected) {
235 var msg = expected.length === 1

Callers 15

parseHyperScriptMethod · 0.95
parseMethod · 0.95
parseHyperScriptMethod · 0.95
parseMethod · 0.95
parseHyperScriptMethod · 0.95
parseMethod · 0.95
parseHyperScriptMethod · 0.95
parseMethod · 0.95
parseHyperScriptMethod · 0.95
parseMethod · 0.95
parseHyperScriptMethod · 0.95
parseMethod · 0.95

Calls 1

currentTokenMethod · 0.95

Tested by

no test coverage detected