Project

General

Profile

« Previous | Next » 

Revision 881c5a18

Added by tenderlovemaking (Aaron Patterson) over 1 year ago

[ruby/prism] Add a "repeated flag" to parameter nodes

It's possible to repeat parameters in method definitions like so:

def foo(_a, _a)
end

The compiler needs to know to adjust the local table size to account for
these duplicate names. We'll use the repeated parameter flag to account
for the extra stack space required

https://github.com/ruby/prism/commit/b443cb1f60

Co-Authored-By: Kevin Newton
Co-Authored-By: Jemma Issroff