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

Method require

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

Source from the content-addressed store, hash-verified

255 // Require an exact match
256 private void require(String syntax) { require(null, syntax); }
257 private Node require(Node n, String syntax) {
258 if (match(syntax)) return n;
259 throw errorSyntax(syntax);
260 }

Callers 5

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