Report file names with lexer errors

This commit is contained in:
Sam Harwell 2013-05-17 23:56:56 -05:00
parent 5948f50288
commit 0e5bcc2416
1 changed files with 3 additions and 0 deletions

View File

@ -1094,6 +1094,9 @@ public class TestPerformance extends BaseTest {
sharedLexers[thread] = lexer;
}
lexer.removeErrorListeners();
lexer.addErrorListener(DescriptiveErrorListener.INSTANCE);
if (lexer.getInterpreter().decisionToDFA[0] == null) {
ATN atn = lexer.getATN();
for (int i = 0; i < lexer.getInterpreter().decisionToDFA.length; i++) {