MCPcopy Create free account
hub / github.com/boxbeam/RedLib / assertChar

Method assertChar

src/redempt/redlib/json/JSONParser.java:48–52  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

46 }
47
48 private void assertChar(char c) {
49 if (advance() != c) {
50 throw new IllegalArgumentException("Invalid JSON, expected '" + c + "' at position " + (pos - 1));
51 }
52 }
53
54 private boolean isWhitespace() {
55 char c = peek();

Callers 4

decimalMethod · 0.95
stringMethod · 0.95
listMethod · 0.95
mapMethod · 0.95

Calls 1

advanceMethod · 0.95

Tested by

no test coverage detected