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-27 15:04:40 +09:00
2023-11-07 10:22:30 +00:00
2023-10-03 16:13:18 +09:00
2023-11-07 15:37:45 +09:00
2023-11-28 12:22:46 -05: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-09-19 01:55:27 +00:00
2023-11-27 16:07:03 +00:00
2023-11-13 12:42:31 +00:00
2023-11-07 02:27:08 +00:00
2023-11-08 11:02:55 +01:00
2023-11-24 07:26:27 +00:00
2023-11-06 10:08:41 +00:00
2023-10-30 08:35:13 +00:00
2023-09-19 01:04:54 +00:00
2023-11-07 07:01:35 +00:00
2023-11-06 18:33:03 +09:00
2023-11-16 18:14:48 +09:00
2023-11-08 09:04:28 +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:24:50 +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-09-23 02:22:25 +00:00
2023-11-28 14:05:31 +00:00
2023-11-07 15:35:37 +09:00
2023-10-12 17:46:01 +09:00
2023-11-07 02:52:46 +00:00
2023-11-07 03:42:58 +00:00
2023-11-21 22:25:28 +00:00
2023-11-07 16:37:06 +09:00
2023-11-07 01:40:53 +00:00
2023-10-19 06:55:40 +00:00
2023-11-07 06:16:31 +00:00
2023-11-07 01:00:08 +00:00
2023-11-07 01:10:12 +00:00
2023-11-12 02:53:33 +00:00
2023-11-07 03:10:45 +00:00
2023-11-06 14:40:42 +00:00
2023-11-25 11:40:08 -08:00
2023-11-13 11:06:10 +09:00
2023-11-07 13:21:23 +09:00
2023-11-06 09:46:21 +00:00
2023-11-06 09:44:09 +00:00
2023-11-08 16:47:29 +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