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

Method require

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

Source from the content-addressed store, hash-verified

369
370 // Require an exact match
371 private void require(String syntax) { require(null, syntax); }
372 private Node require(Node n, String syntax) {
373 if (match(syntax)) return n;
374 throw errorSyntax(syntax);

Callers 6

parseStatementMethod · 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