(c)
| 49966 | throw error; |
| 49967 | }, |
| 49968 | next = function next(c) { |
| 49969 | |
| 49970 | // If a c parameter is provided, verify that it matches the current character. |
| 49971 | |
| 49972 | if (c && c !== ch) { |
| 49973 | error("Expected " + renderChar(c) + " instead of " + renderChar(ch)); |
| 49974 | } |
| 49975 | |
| 49976 | // Get the next character. When there are no more characters, |
| 49977 | // return the empty string. |
| 49978 | |
| 49979 | ch = text.charAt(at); |
| 49980 | at++; |
| 49981 | columnNumber++; |
| 49982 | if (ch === '\n' || ch === '\r' && peek() !== '\n') { |
| 49983 | lineNumber++; |
| 49984 | columnNumber = 0; |
| 49985 | } |
| 49986 | return ch; |
| 49987 | }, |
| 49988 | peek = function peek() { |
| 49989 | |
| 49990 | // Get the next character without consuming it or |
no test coverage detected