mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 12:25:49 +01:00
If a line or column is unknown, we internally represent it as line or column -1. When mapped from our 1-based numbering to LSP's 0-based numbering, it comes out as -2, which is out of range since LSP requires lines and columns to be >= 0. Detect this case and produce a fallback. Assisted-by: Claude via Antigravity