(BaseRecognizer recognizer)
| 224 | } |
| 225 | |
| 226 | private static void checkError(BaseRecognizer recognizer) |
| 227 | throws ParserException { |
| 228 | int errorCount = recognizer.getNumberOfSyntaxErrors(); |
| 229 | if (0 < errorCount) |
| 230 | throw new ParserException("Encountered " + errorCount |
| 231 | + " parsing errors in the query"); |
| 232 | } |
| 233 | |
| 234 | static Tree parse(CommonTokenStream tokens) throws ParserException { |
| 235 | QueryParser parser = QueryParserUtils.createParser(tokens); |
no outgoing calls
no test coverage detected