File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
scaladoc/src/dotty/tools/scaladoc Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,10 @@ trait ClassLikeSupport:
292
292
def getParentsAsTreeSymbolTuples : List [(Tree , Symbol )] =
293
293
for
294
294
parentTree <- c.parents if isValidPos(parentTree.pos) // We assume here that order is correct
295
- parentSymbol = if parentTree.symbol.isClassConstructor then parentTree.symbol.owner else parentTree.symbol
295
+ parentSymbol = parentTree match
296
+ case t : TypeTree => t.tpe.typeSymbol
297
+ case tree if tree.symbol.isClassConstructor => tree.symbol.owner
298
+ case tree => tree.symbol
296
299
if parentSymbol != defn.ObjectClass && parentSymbol != defn.AnyClass
297
300
yield (parentTree, parentSymbol)
298
301
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package transformers
3
3
4
4
class InheritanceInformationTransformer (using DocContext ) extends (Module => Module ):
5
5
override def apply (original : Module ): Module =
6
- val subtypes = getSupertypes(original.rootPackage).groupBy(_._1).transform((k, v) => v.map(_._2 ))
6
+ val subtypes = getSupertypes(original.rootPackage).groupMap(_( 0 ))(_( 1 ))
7
7
original.updateMembers { m =>
8
8
val edges = getEdges(m.asLink.copy(kind = bareClasslikeKind(m.kind)), subtypes)
9
9
val st : Seq [LinkToType ] = edges.map(_._1).distinct
You can’t perform that action at this time.
0 commit comments