(int toMatch, boolean ignoreComment)
| 489 | } |
| 490 | |
| 491 | private boolean matchToken(int toMatch, boolean ignoreComment) throws IOException { |
| 492 | int tt = peekToken(); |
| 493 | while (tt == Token.COMMENT && ignoreComment) { |
| 494 | consumeToken(); |
| 495 | tt = peekToken(); |
| 496 | } |
| 497 | if (tt != toMatch) { |
| 498 | return false; |
| 499 | } |
| 500 | consumeToken(); |
| 501 | return true; |
| 502 | } |
| 503 | |
| 504 | // Returns Token.EOL if the current token follows a newline, else returns |
| 505 | // the current token. Used in situations where we don't consider certain |
no test coverage detected