lib/antlr4/runtime/parser_atn_simulator.rb in antlr4-runtime-0.2.1 vs lib/antlr4/runtime/parser_atn_simulator.rb in antlr4-runtime-0.2.2

- old
+ new

@@ -790,20 +790,20 @@ end end c.reaches_into_outer_context += 1 - added = closure_busy.add?(c) + added = !closure_busy.add?(c).nil? unless added i += 1 next end configs.dips_into_outer_context = true # TODO: can remove? only care when we add to set per middle of this method new_depth -= 1 puts('dips into outer ctx: ' << c.to_s) if @debug else - added = closure_busy.add?(c) + added = !closure_busy.add?(c).nil? if !t.epsilon? && !added i += 1 next end