MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / raiseExpected

Method raiseExpected

www/js/_hyperscript.js:1254–1257  ·  view source on GitHub ↗
(...expected)

Source from the content-addressed store, hash-verified

1252 throw new ParseRecoverySentinel(parseError);
1253 }
1254 raiseExpected(...expected) {
1255 var msg = expected.length === 1 ? "Expected '" + expected[0] + "' but found '" + this.currentToken().value + "'" : "Expected one of: " + expected.map((e) => "'" + e + "'").join(", ");
1256 this.raiseError(msg, expected);
1257 }
1258 // ===========================
1259 // Parser-owned methods
1260 // ===========================

Callers 8

requireOpTokenMethod · 0.95
requireTokenTypeMethod · 0.95
requireTokenMethod · 0.95
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