Skip to content

Implement on_op for ripper#4067

Merged
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:on-op
Apr 6, 2026
Merged

Implement on_op for ripper#4067
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:on-op

Conversation

@Earlopain
Copy link
Copy Markdown
Collaborator

Mostly the same as for on_kw.

Stop comparing order for a handful of events. They are emitted by ripper in a order that is not easy for prism to replicate. For example infoo, bar, baz = 123, op for = is emitted before the last mass assign identifier (so foo, bar, =, baz.

I don't want to replicate that if I don't have to. Same for :: in A::B = 123 etc.

Mostly the same as for `on_kw`.

Stop comparing order for a handful of events. They are emitted by ripper in a order that is
not easy for prism to replicate. For example in`foo, bar, baz = 123`, `op` for `=` is emitted
before the last mass assign identifier (so `foo`, `bar`, `=`, `baz`.

I don't want to replicate that if I don't have to. Same for `::` in `A::B = 123` etc.
@kddnewton kddnewton merged commit 99f8edd into ruby:main Apr 6, 2026
68 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