<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/fixtures/repeat_parameters.txt, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Add a "repeated flag" to parameter nodes</title>
<updated>2024-01-10T15:24:26+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2024-01-09T18:12:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=881c5a1846c220662a4ad49208a28fe0287b3c58'/>
<id>881c5a1846c220662a4ad49208a28fe0287b3c58</id>
<content type='text'>
It's possible to repeat parameters in method definitions like so:

```ruby
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 &lt;kddnewton@gmail.com&gt;
Co-Authored-By: Jemma Issroff &lt;jemmaissroff@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's possible to repeat parameters in method definitions like so:

```ruby
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 &lt;kddnewton@gmail.com&gt;
Co-Authored-By: Jemma Issroff &lt;jemmaissroff@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
