Earlopain 9ad8dd00b1 [ruby/prism] Fix on_* return value of ripper translator
You're supposed to return the first argument.
```rb
# Before
[[:stmts_new], [:rescue_mod, nil, nil], [:stmts_add, nil, nil], [:program, nil]]
# After
[[:stmts_new], [:rescue_mod, "1", "2"], [:stmts_add, nil, "1"], [:program, nil]]
```

The correct result would be:
`[[:rescue_mod, "1", "2"], [:stmts_new], [:stmts_add, nil, "1"], [:program, nil]]`

But the order depends on the prism AST so it seems very difficult to match.

https://github.com/ruby/prism/commit/94e0107729
2026-01-20 20:23:18 +00:00
..
2025-12-24 11:21:11 +09:00
2025-12-15 17:15:25 +00:00
2025-12-18 16:46:29 +09:00
2025-12-10 07:08:05 +00:00
2025-12-14 17:35:26 -05:00
2025-12-10 06:43:06 +00:00
2025-12-26 11:00:51 +09:00
2025-12-17 15:47:43 +09:00