Convert an LSP Position (line, character) to a byte offset in content. Thin wrapper around [`position_to_byte_offset`] that returns `u32` (matching the offset type used by `ClassInfo::start_offset` / `end_offset` and `ResolutionCtx::cursor_offset`).
(content: &str, position: Position)
| 719 | /// (matching the offset type used by `ClassInfo::start_offset` / |
| 720 | /// `end_offset` and `ResolutionCtx::cursor_offset`). |
| 721 | pub(crate) fn position_to_offset(content: &str, position: Position) -> u32 { |
| 722 | position_to_byte_offset(content, position) as u32 |
| 723 | } |
| 724 | |
| 725 | /// Convert an LSP `Position` (line/character) to a character offset into |
| 726 | /// a pre-built char array. |
no test coverage detected