(ParserUtils.StringPosition source, char required)
| 132 | } |
| 133 | |
| 134 | static void requireChar(ParserUtils.StringPosition source, char required) { |
| 135 | if (source.position >= source.length || |
| 136 | source.value.charAt(source.position) != required) { |
| 137 | throw new IllegalArgumentException("Missing required char '" + |
| 138 | required + "' at " + source); |
| 139 | } |
| 140 | source.position += 1; |
| 141 | } |
| 142 | |
| 143 | private static boolean consumeChar(ParserUtils.StringPosition source, |
| 144 | char ch) { |
no outgoing calls
no test coverage detected