lib/antlr4/runtime/parser_atn_simulator.rb in antlr4-runtime-0.2.8 vs lib/antlr4/runtime/parser_atn_simulator.rb in antlr4-runtime-0.2.9

- old
+ new

@@ -244,11 +244,10 @@ predicate_dfa_state(d, atn.decision_state(dfa.decision)) d.prediction = ATN::INVALID_ALT_NUMBER unless d.predicates.nil? end # all adds to dfa are done after we've created full D state - d = add_dfa_edge(dfa, prev_d, t, d) - d + add_dfa_edge(dfa, prev_d, t, d) end def predicate_dfa_state(dfa_state, decision_state) # We need to test all predicates, even in DFA states that # uniquely predict alternative. nalts = decision_state.number_of_transitions