diff options
author | Kevin Newton <[email protected]> | 2024-02-13 14:58:41 -0500 |
---|---|---|
committer | git <[email protected]> | 2024-02-13 20:10:25 +0000 |
commit | b1964a92044f97f3b71ec98906c02083e28a7226 (patch) | |
tree | de7832f5ffa9c2d6da9eb54c19dd4a639bb264b9 /symbol.c | |
parent | 6261d4b4d8112a461ac5a383032490007f47029c (diff) |
[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 <[email protected]>
Diffstat (limited to 'symbol.c')
0 files changed, 0 insertions, 0 deletions