[ruby/irb] Move assignment check to RubyLex (https://github.com/ruby/irb/pull/670)
Since assignment check relies on tokenization with Ripper, it feels like the responsibility of RubyLex. Irb#eval_input should simply get the result when calling each_top_level_statement on RubyLex.
Ripper
RubyLex
Irb#eval_input
each_top_level_statement
https://github.com/ruby/irb/commit/89d1adb3fd
[ruby/irb] Move assignment check to RubyLex
(https://github.com/ruby/irb/pull/670)
Since assignment check relies on tokenization with
Ripper, it feels likethe responsibility of
RubyLex.Irb#eval_inputshould simply get the resultwhen calling
each_top_level_statementonRubyLex.https://github.com/ruby/irb/commit/89d1adb3fd