Kevin Newton 4938390177 [ruby/prism] Implicit rest nodes
Fundamentally, `foo { |bar,| }` is different from `foo { |bar, *| }`
because of arity checks. This PR introduces a new node to handle
that, `ImplicitRestNode`, which goes in the `rest` slot of parameter
nodes instead of `RestParameterNode` instances.

This is also used in a couple of other places, namely:

* pattern matching: `foo in [bar,]`
* multi target: `for foo, in bar do end`
* multi write: `foo, = bar`

Now the only splat nodes with a `NULL` value are when you're
forwarding, as in: `def foo(*) = bar(*)`.

https://github.com/ruby/prism/commit/dba2a3b652
2023-11-28 22:33:50 +00:00
..
2023-11-07 05:17:52 +00:00
2023-11-07 04:06:59 +00:00
2023-11-07 02:32:01 +00:00
2023-11-28 22:33:50 +00:00
2023-11-07 02:27:08 +00:00
2023-11-06 10:08:41 +00:00
2023-11-07 07:01:35 +00:00
2023-11-06 18:33:03 +09:00
2023-11-07 08:29:31 +00:00
2023-10-03 16:13:18 +09:00
2023-11-07 13:37:17 +09:00
2023-11-07 07:32:00 +00:00
2023-11-07 07:15:34 +00:00
2023-11-07 12:53:16 +09:00
2023-11-07 03:47:15 +00:00
2023-11-07 15:35:37 +09:00
2023-11-07 02:52:46 +00:00
2023-11-07 03:42:58 +00:00
2023-11-07 16:37:06 +09:00
2023-11-07 01:40:53 +00:00
2023-11-07 06:16:31 +00:00
2023-11-07 01:00:08 +00:00
2023-11-07 03:10:45 +00:00
2023-11-06 09:46:21 +00:00
2023-11-06 09:44:09 +00:00
2023-11-07 05:09:48 +00:00
2023-11-07 04:56:40 +00:00
2023-11-07 11:39:02 +09:00
2023-11-07 01:59:17 +00:00
2023-11-06 09:29:53 +00:00
2023-11-07 01:46:40 +00:00
2023-11-06 19:03:04 +09:00