<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/fixtures/methods.txt, branch v4.0.3</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] Fix parser translator ast when using anonymous forwarding in blocks/lambda</title>
<updated>2025-01-12T00:09:05+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-01-05T12:54:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1a70014f9a1ee411c41338d0929443bab004cda'/>
<id>d1a70014f9a1ee411c41338d0929443bab004cda</id>
<content type='text'>
Blocks and lambdas inherit anonymous arguments from the method they are a part of.
They themselves don't allow to introduce new anonymous arguments.
While you can write this:
```rb
def foo(*)
  bar { |**| }
end
```
referecing the new parameter inside of the block will always be a syntax error.

https://github.com/ruby/prism/commit/2cbd27e134
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Blocks and lambdas inherit anonymous arguments from the method they are a part of.
They themselves don't allow to introduce new anonymous arguments.
While you can write this:
```rb
def foo(*)
  bar { |**| }
end
```
referecing the new parameter inside of the block will always be a syntax error.

https://github.com/ruby/prism/commit/2cbd27e134
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Allow returns in default parameter values</title>
<updated>2024-09-18T15:52:27+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-09-17T18:10:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=96da3f16a0e4ad9c14197d5ed794cecf1abf9546'/>
<id>96da3f16a0e4ad9c14197d5ed794cecf1abf9546</id>
<content type='text'>
https://github.com/ruby/prism/commit/e98ea15596
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/e98ea15596
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20423] Disallow anonymous block within argument forwarding</title>
<updated>2024-04-12T07:07:49+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-12T07:07:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e36988450e9e9ccccb41c72135f1e57790920668'/>
<id>e36988450e9e9ccccb41c72135f1e57790920668</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>
<entry>
<title>[ruby/prism] Reject class/module defs in method params/rescue/ensure/else</title>
<updated>2023-11-29T02:03:06+00:00</updated>
<author>
<name>TSUYUSATO Kitsune</name>
<email>make.just.on@gmail.com</email>
</author>
<published>2023-11-29T01:32:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a908cef53f4c647c7fe7c9e808b501c3bb3cc70f'/>
<id>a908cef53f4c647c7fe7c9e808b501c3bb3cc70f</id>
<content type='text'>
Fix https://github.com/ruby/prism/pull/1936

https://github.com/ruby/prism/commit/232e77a003
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/ruby/prism/pull/1936

https://github.com/ruby/prism/commit/232e77a003
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Reset `current_param_name` around closed scopes</title>
<updated>2023-11-28T17:27:10+00:00</updated>
<author>
<name>TSUYUSATO Kitsune</name>
<email>make.just.on@gmail.com</email>
</author>
<published>2023-11-28T04:23:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c11dd3475306a951959a8599f31ca360342ce008'/>
<id>c11dd3475306a951959a8599f31ca360342ce008</id>
<content type='text'>
It is for supporting `def foo(bar = (def baz(bar) = bar; 1)) = 2` case.

https://github.com/ruby/prism/commit/c789a833c5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is for supporting `def foo(bar = (def baz(bar) = bar; 1)) = 2` case.

https://github.com/ruby/prism/commit/c789a833c5
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Allow `&amp;` forwarding in a method having `...` parameter</title>
<updated>2023-11-22T14:53:26+00:00</updated>
<author>
<name>TSUYUSATO Kitsune</name>
<email>make.just.on@gmail.com</email>
</author>
<published>2023-11-19T01:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=154b2d666d51498e39b8414afb448882c4285288'/>
<id>154b2d666d51498e39b8414afb448882c4285288</id>
<content type='text'>
Fix https://github.com/ruby/prism/pull/1839

https://github.com/ruby/prism/commit/5784ab749f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/ruby/prism/pull/1839

https://github.com/ruby/prism/commit/5784ab749f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Fix lex_state_beg_p</title>
<updated>2023-11-21T17:22:18+00:00</updated>
<author>
<name>Haldun Bayhantopcu</name>
<email>haldun@github.com</email>
</author>
<published>2023-11-21T17:22:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f397650cda4e99a8eaf710ac5bcf73da960dc30b'/>
<id>f397650cda4e99a8eaf710ac5bcf73da960dc30b</id>
<content type='text'>
(https://github.com/ruby/prism/pull/1591)

https://github.com/ruby/prism/commit/46b8576dd0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/prism/pull/1591)

https://github.com/ruby/prism/commit/46b8576dd0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Forward parameters into arrays</title>
<updated>2023-11-01T17:03:35+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2023-11-01T13:36:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c0eb221b7d35cc2d2ad1b861167fcc3ee80c16b'/>
<id>8c0eb221b7d35cc2d2ad1b861167fcc3ee80c16b</id>
<content type='text'>
https://github.com/ruby/prism/commit/2a11bfee76
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/2a11bfee76
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename YARP filepaths to prism filepaths</title>
<updated>2023-09-27T17:57:38+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2023-09-27T16:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8ab56869a64fdccc094f4a83c6367fb23b72d38b'/>
<id>8ab56869a64fdccc094f4a83c6367fb23b72d38b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
