Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse stabby lambda args same as Kernel#lambda
[Fixes #186] Prior to this change, stabby lambda parsed empty argument list as an integer zero. s(:iter, s(:call, nil, :lambda), 0) After this change, stabby lambda parses empty argument list as `s(:args)` s(:iter, s(:call, nil, :lambda), s(:args)) This fixes an inconsistency between stabby lambda and Kernel#lambda, and will simplify sexp processors like ruby2ruby. Will require a change to SexpProcessor's tests.
- Loading branch information
Showing
4 changed files
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters