]> Repositorios git - classgraph.git/commitdiff
Relabel "needs Foo" superclass edges to "superclass needed Foo"
authorJavier Sagredo <[email protected]>
Wed, 6 May 2026 22:10:50 +0000 (00:10 +0200)
committerJavier Sagredo <[email protected]>
Wed, 6 May 2026 23:51:06 +0000 (01:51 +0200)
The plain "needs Foo …" edge label in the instance view glossed
which kind of constraint we were displaying (context vs. superclass
vs. ambient). Make it explicit: this edge represents a *superclass*
requirement.

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

index 757e9b0fa4211259e80dbeaf015996217ab6bf79..85fd532286ce0d30660e4276b23a94e107b52352 100644 (file)
         const reqArgs = subbedArgs.map(reduceTypeArg);
         const matched = findMatchingInstances(sc.seSuperclass, reqArgs);
         const scClsId = ensureClassNode(sc.seSuperclass);
-        const reqLabel = 'needs ' + sc.seSuperclass.qnName + ' ' +
+        const reqLabel = 'superclass needed ' + sc.seSuperclass.qnName + ' ' +
           renderArgsCompact(reqArgs, inst.iiTyVars);
 
         if (matched.length === 0) {