feat(oxc_data_structure/rope): add get_offset_from_line_and_column#18133
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
000e80a to
db880f8
Compare
db880f8 to
be3a3f6
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a new function get_offset_from_line_and_column that performs the inverse operation of the existing get_line_column function, converting UTF-16 line and column coordinates to a UTF-8 byte offset in source text.
Changes:
- Added
get_offset_from_line_and_columnfunction to convert UTF-16 line/column to UTF-8 offset - Extended all existing test cases to verify the bidirectional conversion works correctly
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
…18133) > This PR adds a new function get_offset_from_line_and_column that performs the inverse operation of the existing get_line_column function, converting UTF-16 line and column coordinates to a UTF-8 byte offset in source text.
be3a3f6 to
7d497fc
Compare
|
Oops I meant to assign this to @overlookmotel to review, not merge it! |
…18133) > This PR adds a new function get_offset_from_line_and_column that performs the inverse operation of the existing get_line_column function, converting UTF-16 line and column coordinates to a UTF-8 byte offset in source text.
7d497fc to
b046e69
Compare
…18133) > This PR adds a new function get_offset_from_line_and_column that performs the inverse operation of the existing get_line_column function, converting UTF-16 line and column coordinates to a UTF-8 byte offset in source text.
b046e69 to
e814049
Compare
### 🚀 Features - e814049 oxc_data_structure/rope: Add `get_offset_from_line_and_column` (#18133) (Sysix) ### 🐛 Bug Fixes - 7958b56 linter: Fix syntax error reporting in some output formatters. (#19590) (connorshea) - e316694 codegen: Avoid sourcemap panic on `U+2028`/`U+2029` (#19548) (camc314) - 933ff72 semantic: Emit correct error code for reserved type name (#19545) (camc314) ### ⚡ Performance - b5fa195 codegen: Remove bounds check from `SourcemapBuilder` (#19578) (overlookmotel) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>

Uh oh!
There was an error while loading. Please reload this page.