reportAttemptingFullContext didn't get conflicting alts unless decision had predicates.

This commit is contained in:
Terence Parr 2014-06-02 18:02:17 -07:00
parent 52fbc5edc9
commit 982b70fbfd
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ public class ParserATNSimulator extends ATNSimulator {
if ( D.requiresFullContext && mode != PredictionMode.SLL ) {
// IF PREDS, MIGHT RESOLVE TO SINGLE ALT => SLL (or syntax error)
BitSet conflictingAlts = null;
BitSet conflictingAlts = D.configs.conflictingAlts;
if ( D.predicates!=null ) {
if ( debug ) System.out.println("DFA state has preds in DFA sim LL failover");
int conflictIndex = input.index();