Skip to content

Better ripper event tests / handful of compatibility fixes#4032

Merged
kddnewton merged 4 commits intoruby:mainfrom
Earlopain:ripper-events-test
Mar 24, 2026
Merged

Better ripper event tests / handful of compatibility fixes#4032
kddnewton merged 4 commits intoruby:mainfrom
Earlopain:ripper-events-test

Conversation

@Earlopain
Copy link
Collaborator

Currently the events are not very well tested, now it compares against the full test suite. Also includes a handful of fixes for better compat that I discovered during this.

For the event excludes, most are not implemented at all like on_comma and others have many failures I didn't check out yet like on_words_sep. The test excludes are for implemented events that just have a few incompatibilities here and there.

Eventually I want to implement currently unimplemented types like on_tstring_begin which yard for example uses. Seems like that should be possible.

Currently there is just one very basic one.
`::X &&= 1` for example emitted `on_int` twice
They may not be part of `on_param` but ripper still calls `on_ident` for them
Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@kddnewton kddnewton merged commit 934b98a into ruby:main Mar 24, 2026
124 of 125 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants