MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / require

Method require

chapter07/src/main/java/com/seaofnodes/simple/Parser.java:441–441  ·  view source on GitHub ↗
(String syntax)

Source from the content-addressed store, hash-verified

439
440 // Require an exact match
441 private void require(String syntax) { require(null, syntax); }
442 private <N extends Node> N require(N n, String syntax) {
443 if (match(syntax)) return n;
444 throw errorSyntax(syntax);

Callers 7

parseStatementMethod · 0.95
parseWhileMethod · 0.95
parseIfMethod · 0.95
parseReturnMethod · 0.95
parseDeclMethod · 0.95
parsePrimaryMethod · 0.95

Calls 2

matchMethod · 0.95
errorSyntaxMethod · 0.95

Tested by

no test coverage detected