forked from jasder/antlr
rm dead code
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8905]
This commit is contained in:
parent
b4b02bb813
commit
613c802c8c
|
@ -52,14 +52,6 @@ public class ParserATNSimulator extends ATNSimulator {
|
||||||
|
|
||||||
protected Set<ATNConfig> closureBusy = new HashSet<ATNConfig>();
|
protected Set<ATNConfig> closureBusy = new HashSet<ATNConfig>();
|
||||||
|
|
||||||
/** Upon entry for prediction, we might need to execute actions and
|
|
||||||
* we need to know original context passed to us from parser or
|
|
||||||
* lexer. This is the stack and any args, locals, labels, etc...
|
|
||||||
* Meaningless across adaptivePredict() calls but easier as field
|
|
||||||
* than passing down many function calls.
|
|
||||||
protected RuleContext _ctx;
|
|
||||||
*/
|
|
||||||
|
|
||||||
public ParserATNSimulator(ATN atn) {
|
public ParserATNSimulator(ATN atn) {
|
||||||
super(atn);
|
super(atn);
|
||||||
ctxToDFAs = new HashMap<RuleContext, DFA[]>();
|
ctxToDFAs = new HashMap<RuleContext, DFA[]>();
|
||||||
|
@ -78,7 +70,6 @@ public class ParserATNSimulator extends ATNSimulator {
|
||||||
|
|
||||||
public int adaptivePredict(TokenStream input, int decision, RuleContext originalContext) {
|
public int adaptivePredict(TokenStream input, int decision, RuleContext originalContext) {
|
||||||
predict_calls++;
|
predict_calls++;
|
||||||
// this._ctx = originalContext;
|
|
||||||
DFA dfa = decisionToDFA[decision];
|
DFA dfa = decisionToDFA[decision];
|
||||||
if ( dfa==null || dfa.s0==null ) {
|
if ( dfa==null || dfa.s0==null ) {
|
||||||
ATNState startState = atn.decisionToState.get(decision);
|
ATNState startState = atn.decisionToState.get(decision);
|
||||||
|
|
Loading…
Reference in New Issue