Skip to content

Commit 5c66118

Browse files
committed
Use allMembers from reflection API
1 parent 04ecdb4 commit 5c66118

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/ClassLikeSupport.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ trait ClassLikeSupport:
368368
def membersToDocument = c.body.filterNot(_.symbol.isHiddenByVisibility)
369369

370370
def getNonTrivialInheritedMemberTrees =
371-
c.symbol.getmembers.filterNot(s => s.isHiddenByVisibility || s.maybeOwner == c.symbol)
371+
reflect.ClassDef.copy(c)(c.name, c.constructor, c.parents, None, c.body).symbol.allMembers
372+
.filterNot(s => s.isHiddenByVisibility || s.maybeOwner == c.symbol)
372373
.filter(s => s.maybeOwner != defn.ObjectClass && s.maybeOwner != defn.AnyClass)
373374
.map(_.tree)
374375

0 commit comments

Comments
 (0)