(c)
| 48274 | throw error; |
| 48275 | }, |
| 48276 | next = function next(c) { |
| 48277 | |
| 48278 | // If a c parameter is provided, verify that it matches the current character. |
| 48279 | |
| 48280 | if (c && c !== ch) { |
| 48281 | error("Expected " + renderChar(c) + " instead of " + renderChar(ch)); |
| 48282 | } |
| 48283 | |
| 48284 | // Get the next character. When there are no more characters, |
| 48285 | // return the empty string. |
| 48286 | |
| 48287 | ch = text.charAt(at); |
| 48288 | at++; |
| 48289 | columnNumber++; |
| 48290 | if (ch === '\n' || ch === '\r' && peek() !== '\n') { |
| 48291 | lineNumber++; |
| 48292 | columnNumber = 0; |
| 48293 | } |
| 48294 | return ch; |
| 48295 | }, |
| 48296 | peek = function peek() { |
| 48297 | |
| 48298 | // Get the next character without consuming it or |
no test coverage detected