Skip to content

Use less visit_token in the ripper translator#4105

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:ripper-more-specific
May 7, 2026
Merged

Use less visit_token in the ripper translator#4105
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:ripper-more-specific

Conversation

@Earlopain
Copy link
Copy Markdown
Collaborator

The ripper translator is a good resource when porting ripper usage over to prism

A few places use visit_token when it can be more specific. A call operator for example can ever only be one of three things. A positional argument can only ever be a identifier (no constant, no global, etc.)

Also removes some stale comments. There are *_TargetNode for these now.

The ripper translator is a good resource when porting ripper usage over to prism

A few places use `visit_token` when it can be more specific.
A call operator for example can ever only be one of three things.
A positional argument can only ever be a identifier (no constant, no global, etc.)

Also removes some stale comments. There are `*_TargetNode` for these now.
@kddnewton kddnewton merged commit 62511d5 into ruby:main May 7, 2026
61 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