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

Method raiseExpected

www/js/_hyperscript-max.js:1253–1256  ·  view source on GitHub ↗
(...expected)

Source from the content-addressed store, hash-verified

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

Callers 9

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