Remove unused and undocumented method DFA.getATNStatesAlongPath

This commit is contained in:
Sam Harwell 2013-04-24 10:32:51 -05:00
parent 15577fd21f
commit 25676332fb
1 changed files with 0 additions and 23 deletions

View File

@ -91,29 +91,6 @@ public class DFA {
return result;
}
public List<Set<ATNState>> getATNStatesAlongPath(ParserATNSimulator atn,
List<DFAState> dfaStates,
TokenStream input, int start, int stop)
{
List<Set<ATNState>> atnStates = new ArrayList<Set<ATNState>>();
int i = start;
for (DFAState D : dfaStates) {
Set<ATNState> fullSet = D.configs.getStates();
Set<ATNState> statesInvolved = new HashSet<ATNState>();
for (ATNState astate : fullSet) {
Transition t = astate.transition(0);
ATNState target = atn.getReachableTarget(t, input.get(i).getType());
if ( target!=null ) {
statesInvolved.add(astate);
}
}
System.out.println("statesInvolved upon "+input.get(i).getText()+"="+statesInvolved);
i++;
atnStates.add(statesInvolved);
}
return atnStates;
}
@Override
public String toString() { return toString(null); }