Lexes the specified input string, and returns a string containing just the line numbers of each token.
(String input)
| 86 | * token. |
| 87 | */ |
| 88 | private String linenums(String input) { |
| 89 | Lexer lexer = createLexer(input); |
| 90 | StringBuilder buf = new StringBuilder(); |
| 91 | for (Token tok : allTokens(lexer)) { |
| 92 | if (buf.length() > 0) { |
| 93 | buf.append(' '); |
| 94 | } |
| 95 | int line = lexer.locs.getLocation(tok.start).line(); |
| 96 | buf.append(line); |
| 97 | } |
| 98 | return buf.toString(); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Returns a string containing the names of the tokens and their associated |
no test coverage detected