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

Method require

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

Source from the content-addressed store, hash-verified

1201
1202 // Require an exact match
1203 private Parser require(String syntax) { require(null, syntax); return this; }
1204 private <N> N require(N n, String syntax) {
1205 if (match(syntax)) return n;
1206 throw errorSyntax(syntax);

Callers 13

parseStatementMethod · 0.95
parseWhileMethod · 0.95
parseForMethod · 0.95
parseLoopingMethod · 0.95
parseContinueMethod · 0.95
parseBreakMethod · 0.95
parseIfMethod · 0.95
parseReturnMethod · 0.95
parseStructMethod · 0.95
parsePrimaryMethod · 0.95
allocMethod · 0.95

Calls 2

matchMethod · 0.95
errorSyntaxMethod · 0.95

Tested by

no test coverage detected