ruby / prism

Prism Ruby parser
https://ruby.github.io/prism/
MIT License
792 stars 134 forks source link

Add `data_loc` method to Rust bindings #2854

Closed ryym closed 1 month ago

ryym commented 1 month ago

Closes https://github.com/ruby/prism/discussions/2621

Currently Prism recognizes the __END__ content and provides a way to access it in Ruby, C, and Java APIs, but Rust bindings does not have it. This PR adds the data_loc method to Rust API.