]> Repositorios git - classgraph.git/commit
Chain real fam-instance to predicate node when no class instance matches
authorJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:11:43 +0000 (02:11 +0200)
committerJavier Sagredo <[email protected]>
Thu, 7 May 2026 00:11:43 +0000 (02:11 +0200)
commit6b43ab8695ba2b98250d3d31cf500f7a386407de
tree3ac274489d5020425fae2aa13ade17471199cc00
parentfc2a7bee5ee94c2f33bfb8ced0f0cffb1f6fd281
Chain real fam-instance to predicate node when no class instance matches

addFamilyLinksFromArgs only drew a fam-resolves chain edge when
findMatchingInstances returned a satisfying class instance. For
predicates like @Crypto (ProtoCrypto proto)@ or @Show
(CannotForgeError proto)@ where the class lives in a package the
user hasn't extracted, matched is empty and the fam-instance node
ended up disconnected even though we know exactly which predicate
it discharges. Symmetrise with the synthetic-placeholder branch
above: fall back to chaining fi → originPredId so the fam-instance
visibly belongs to that constraint, even when we can't surface the
actual class-instance satisfier.

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