ruby/lib/prism
Kevin Newton b1964a9204 [ruby/prism] Add code unit APIs to location
LSPs need this because the protocol dictates that you return code
units for offsets. None of our existing APIs provided that
information, and since we hid the source it's not nearly as useful
for them. Now they can pass an encoding directly to:

* Location#start_code_units_offset
* Location#end_code_units_offset
* Location#start_code_units_column
* Location#end_code_units_column

https://github.com/ruby/prism/commit/4757a2cc06

Co-Authored-By: Vinicius Stock <vinicius.stock@shopify.com>
2024-02-13 20:10:25 +00:00
..
parse_result [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
translation [ruby/prism] ruby_parser translator 2024-02-12 17:54:54 +00:00
debug.rb Update forwarding locals for prism 2024-01-30 13:19:06 -05:00
desugar_compiler.rb [ruby/prism] Move flag position consistently to front 2023-12-06 20:50:02 +00:00
ffi.rb [ruby/prism] Introduce `version: "3.4.0"` 2024-02-13 18:26:28 +00:00
lex_compat.rb [ruby/prism] Dev-only CLI 2024-02-07 21:26:14 +00:00
node_ext.rb [ruby/prism] Fix `full_name` for constant path targets 2024-02-13 14:09:19 +00:00
node_inspector.rb [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
pack.rb [ruby/prism] Finish Ruby documentation 2023-11-01 13:10:29 -04:00
parse_result.rb [ruby/prism] Add code unit APIs to location 2024-02-13 20:10:25 +00:00
pattern.rb [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
prism.gemspec [ruby/prism] ruby_parser translator 2024-02-12 17:54:54 +00:00
translation.rb [ruby/prism] ruby_parser translator 2024-02-12 17:54:54 +00:00