]> Repositorios git - classgraph.git/commit
Dedupe the side-panel "Subclasses (in this program)" list
authorJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:49:09 +0000 (02:49 +0200)
committerJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:49:09 +0000 (02:49 +0200)
commit49654160fa188ca5f6376602b41c9f33e80e764a
treec464446c4a371116c39b004d928dbbb9f6634dda
parent14fb2fb567a21fc0c17457572a3a9ac183edc637
Dedupe the side-panel "Subclasses (in this program)" list

A single class can appear twice as a subclass of the same class
(e.g. `class (Foo a, Foo b) => Bar a b` produces two SuperclassEdges
with target Foo). The reverse-index push happens per-edge, which is
the right granularity for chain reasoning, but the side-panel list
was rendering each entry verbatim and so duplicated subclass names.
Add a per-render dedup set keyed on the subclass's qid so each
subclass shows up at most once.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
data/viewer.js