seattlerb / ruby_parser

ruby_parser is a ruby parser written in pure ruby. It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.
http://www.zenspider.com/projects/ruby_parser.html
476 stars 100 forks source link

Fixes endless method with noargs #323

Closed mitsuru closed 3 years ago

mitsuru commented 3 years ago

Fixed an issue where the parsed result was different between the endless method with no arguments and the empty () case.

refs https://github.com/presidentbeef/brakeman/pull/1648#issuecomment-962698048

zenspider commented 3 years ago

Good catch! Done. Thank you! I'll release this in a bit. I want to clean up some tests a bit first.