]> Repositorios git - classgraph.git/commit
Render instance context constraints as predicate nodes
authorJavier Sagredo <[email protected]>
Wed, 6 May 2026 22:31:10 +0000 (00:31 +0200)
committerJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:51:06 +0000 (01:51 +0200)
commit1dcdf4cc8b1f806b5d0c7209dbec863c3e13137a
treefe5699ac26f7063b8f8708d6e46238bf2f2f9109
parentb9ded704fdf40c71602befef596d59d8a7465401
Render instance context constraints as predicate nodes

Was: instance → class node, edge labelled "ctx: <args>".
Now: instance → predicate node ("Foo a b" rendered like a constraint),
edge labelled "instance context".

The new node kind 'predicate' deduplicates on a structural id
(class qid + JSON-stringified args), so the same constraint surfaces
once even when it appears in multiple superclass / context slots —
the next commit relies on this to merge unmatched-superclass
requirements with overlapping context predicates.

Side panel grows a renderPredicatePanel that explains the node's role
and links to the underlying class.

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