From 3f26d42d5346635b97e18d10cf88bbc9038e8191 Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Sat, 28 Jul 2012 18:33:05 -0700 Subject: [PATCH] add Sam's getConflictingAlts potential bug fix as comment --- .../src/org/antlr/v4/runtime/atn/ParserATNSimulator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java index 7ab1660e0..99b547ec5 100755 --- a/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java +++ b/runtime/Java/src/org/antlr/v4/runtime/atn/ParserATNSimulator.java @@ -1238,6 +1238,12 @@ public class ParserATNSimulator extends ATNSimulator { if ( ambigAlts.isNil() ) return null; + // are any configs not represented in ambig alt sets +// for (ATNConfig config : configs) { +// if (!ambigAlts.contains(config.alt)) { +// return null; +// } +// } return ambigAlts; }