parent
b8c2f5b75b
commit
8a0af228d8
|
@ -688,10 +688,8 @@ public class ParserATNSimulator<Symbol extends Token> extends ATNSimulator {
|
||||||
// pairs if preds found for conflicting alts
|
// pairs if preds found for conflicting alts
|
||||||
IntervalSet altsToCollectPredsFrom = getConflictingAltsOrUniqueAlt(D.configs);
|
IntervalSet altsToCollectPredsFrom = getConflictingAltsOrUniqueAlt(D.configs);
|
||||||
SemanticContext[] altToPred = getPredsForAmbigAlts(altsToCollectPredsFrom, D.configs, nalts);
|
SemanticContext[] altToPred = getPredsForAmbigAlts(altsToCollectPredsFrom, D.configs, nalts);
|
||||||
if ( altToPred!=null ) {
|
|
||||||
D.predicates = getPredicatePredictions(altsToCollectPredsFrom, altToPred);
|
D.predicates = getPredicatePredictions(altsToCollectPredsFrom, altToPred);
|
||||||
D.prediction = ATN.INVALID_ALT_NUMBER; // make sure we use preds
|
D.prediction = ATN.INVALID_ALT_NUMBER; // make sure we use preds
|
||||||
}
|
|
||||||
|
|
||||||
if ( D.predicates!=null ) {
|
if ( D.predicates!=null ) {
|
||||||
int stopIndex = input.index();
|
int stopIndex = input.index();
|
||||||
|
|
Loading…
Reference in New Issue