diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2026-01-08 13:47:35 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-01-08 18:35:26 +0000 |
| commit | 16863f2ec1c8cefd852965e58acfcfd61b0194b9 (patch) | |
| tree | dd0e27e2ee83a81c6b0f5779c8415dc803e95370 /test/ruby/test_inlinecache.rb | |
| parent | fc66de3e6b5e28c017c3cffac77a66d680d679a4 (diff) | |
[ruby/prism] Decouple ripper translator from ripper library
Ripper exposes Ripper::Lexer:State in its output, which is a bit of a problem. To make this work, I basically copy-pasted the implementation.
I'm unsure if that is acceptable and added a test to make sure that these values never go out of sync.
I don't imagine them changing often, prism maps them 1:1 for its own usage.
This also fixed the shim by accident. `Ripper.lex` went to `Translation::Ripper.lex` when it should have been the original. Removing the need for the original resolves that issue.
https://github.com/ruby/prism/commit/2c0bea076d
Diffstat (limited to 'test/ruby/test_inlinecache.rb')
0 files changed, 0 insertions, 0 deletions
