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

Method raiseExpected

tools/common/_hyperscript.iife.js:1244–1247  ·  view source on GitHub ↗
(...expected)

Source from the content-addressed store, hash-verified

1242 throw new ParseRecoverySentinel(parseError);
1243 }
1244 raiseExpected(...expected) {
1245 var msg = expected.length === 1 ? "Expected '" + expected[0] + "' but found '" + this.currentToken().value + "'" : "Expected one of: " + expected.map((e) => "'" + e + "'").join(", ");
1246 this.raiseError(msg, expected);
1247 }
1248 // ===========================
1249 // Parser-owned methods
1250 // ===========================

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