Skip to content

Commit 95ceb45

Browse files
committed
WIP: test alternative solution
1 parent 28f83fc commit 95ceb45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scala3doc/src/dotty/dokka/tasty/ClassLikeSupport.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ trait ClassLikeSupport:
7171
if (signatureOnly) baseExtra
7272
else
7373
baseExtra.plus(CompositeMemberExtension(
74-
classDef.extractPatchedMembers,
74+
classDef.extractMembers,
7575
classDef.getParents.map(_.dokkaType.asSignature),
7676
supertypes,
7777
Nil))
@@ -189,7 +189,10 @@ trait ClassLikeSupport:
189189
).map(_.withOrigin(Origin.InheritedFrom(s.symbol.owner.normalizedName, s.symbol.owner.dri)))
190190

191191
extension (c: ClassDef):
192-
def membersToDocument = c.body.filterNot(_.symbol.isHiddenByVisibility)
192+
def membersToDocument =
193+
c.symbol.getAllMembers.filterNot(s => s.isHiddenByVisibility || s.maybeOwner != c.symbol)
194+
.map(_.tree)
195+
//.body.filterNot(_.symbol.isHiddenByVisibility)
193196

194197
def getNonTrivialInheritedMemberTrees =
195198
c.symbol.getAllMembers.filterNot(s => s.isHiddenByVisibility || s.maybeOwner == c.symbol)

0 commit comments

Comments
 (0)