]> Repositorios git - classgraph.git/commit
Show tyvars on class node labels
authorJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:15:54 +0000 (01:15 +0200)
committerJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:51:06 +0000 (01:51 +0200)
commit4b9f928a906a424c3f8a8c425e9f3a895a4c5da8
treebcf9af902ec6895a878d51ab927f0d5ed39e01cd
parenta300cb8337ede7d80223ba9ec89f1dbe65b1ea8d
Show tyvars on class node labels

Class nodes now read "BftCrypto c" / "Bar a b" instead of just the
class name, in both the classes view (Render.hs's classNodes) and
the instance-view ensureClassNode helpers. External classes — for
which we don't know the tyvars — still fall back to the bare name.

Edge labels (the positional substitution into a superclass's args)
keep using the *origin* class's tyvar names via edgeLabel, so an
arrow `Bar a b ──(b)──► Foo b` reads consistently — same letter on
edge and target node.

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