(Token token, String message)
| 818 | } |
| 819 | |
| 820 | private ParseException error(Token token, String message) { |
| 821 | if (token.type == TokenType.EOF) { |
| 822 | return scanner.report(token.line, " at end", message); |
| 823 | } |
| 824 | return scanner.report(token.line, " at '" + token.lexeme + "'", message); |
| 825 | } |
| 826 | |
| 827 | public JObject singleObject() throws ParseException { |
| 828 | Token p = scanner.nextToken(); |
no test coverage detected