Seemingly unnecessary parentheses
jaredbeck opened this issue · 1 comments
jaredbeck commented
hsh = RubyParser.new.parse("{foo: bar}")
# => s(:hash, s(:lit, :foo), s(:call, nil, :bar))
Ruby2Ruby.new.process(hsh)
# => "{ :foo => (bar) }"
In this example, the parentheses around bar
are unnecessary.
- ruby_parser 3.6.5
- ruby2ruby 2.1.3
zenspider commented
I'm gonna close this one since you have it handled in your PR. Feel free to open more tickets for specific situations and we can see what we can do to reduce/eliminate.