Factory method to create a symbol token from a type constant. The symbol text is looked up from the Types registry. @param type the symbol type from Types @param startLine the source line number (1-based) @param startColumn the source column number (1-based) @return a Token representing a s
(final int type, final int startLine, final int startColumn)
| 336 | * @return a Token representing a symbol |
| 337 | */ |
| 338 | public static Token newSymbol(final int type, final int startLine, final int startColumn) { |
| 339 | return new Token(type, Types.getText(type), startLine, startColumn); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Factory method to create a symbol token from text. |