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

Method raiseExpected

src/core/parser.js:234–239  ·  view source on GitHub ↗
(...expected)

Source from the content-addressed store, hash-verified

232 }
233
234 raiseExpected(...expected) {
235 var msg = expected.length === 1
236 ? "Expected '" + expected[0] + "' but found '" + this.currentToken().value + "'"
237 : "Expected one of: " + expected.map(e => "'" + e + "'").join(", ");
238 this.raiseError(msg, expected);
239 }
240
241 // ===========================
242 // Parser-owned methods

Callers 9

requireOpTokenMethod · 0.95
requireTokenTypeMethod · 0.95
requireTokenMethod · 0.95
parseMethod · 0.45
parseMethod · 0.45
parseSourceMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls 2

currentTokenMethod · 0.95
raiseErrorMethod · 0.95

Tested by

no test coverage detected