Files
openide/platform/usageView
Henry Wylde 34f7dbbf07 RUBY-32170 RUBY-32214 replace myOffsetToCompareUsages with myNavigationRange
Currently `getNavigationOffset` is the method used to group and compare usages (see the documentation on `Usage#getNavigationOffset`). `myOffsetToCompareUsages` wasn't actually being used in this method, which meant that computing the navigation offset required restoring `PsiElement`'s from their pointers. This change renames the variable to reflect how it will be used, and checks its presence first in the `getNavigationOffset` to ensure we don't try restore `PsiElement`s unnecessarily. It additionally changes it from an `int` to a `Segment` to keep `getNavigationOffset` and `getNavigationRange` consistent.

(cherry picked from commit 6fc32036bfe6b1df9e366a78e1155c19337bb1ae)

IJ-CR-123421

GitOrigin-RevId: efc34ad2240560327602cc4fab6a8cc1422e2a0a
2024-01-17 00:32:23 +00:00
..