DFA holds a start ATNState instead of DecisionState because technically the interp process can start anywhere in the ATN

This commit is contained in:
Sam Harwell 2012-02-09 22:22:23 -06:00
parent 2fac53ed2f
commit ec8478a1be
1 changed files with 3 additions and 3 deletions

View File

@ -48,18 +48,18 @@ public class DFA {
/** From which ATN state did we create this DFA? */
@NotNull
public final DecisionState atnStartState;
public final ATNState atnStartState;
/** Set of configs for a DFA state with at least one conflict? Mainly used as "return value"
* from predictATN() for retry.
*/
// public OrderedHashSet<ATNConfig> conflictSet;
public DFA(@NotNull DecisionState atnStartState) {
public DFA(@NotNull ATNState atnStartState) {
this(atnStartState, 0);
}
public DFA(@NotNull DecisionState atnStartState, int decision) {
public DFA(@NotNull ATNState atnStartState, int decision) {
this.atnStartState = atnStartState;
this.decision = decision;
}