Skip to content

Conversation

@eregon
Copy link
Member

@eregon eregon commented Jan 18, 2026

Extracted from #3808

I need Prism::Source#line_to_byte_offset for Ripper.

* By comparing byte offsets which folds 3 branches into 1.
* Also avoids allocation of Location objects.
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.

1 participant