lkishalmi opened a new pull request, #5292: URL: https://github.com/apache/netbeans/pull/5292
This fix makes ANTLR Token `getText()` and `toString()` methods usable when the lexer is backed by `LexerInputCharStream`. Unfortunately it seems that ANTLR does not really honor their contract when saying some methods can throw `UnsupportedOperationException`. I may file a PR for ANTLR as well, till then, this one makes debugging easier. I also dared to change the `AbstractAntlrLexerBridge.mapToken(int antlrTokenType)` -> `AbstractAntlrLexerBridge.mapToken(org.antlr.v4.runtime.Token antlrToken)` till it's in this phase. Mappers could take advantage on the full token info as the `getText()` method is working. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
