Skip to content

Commit c160cda

Browse files
committed
Fix synthetic members being added to docs
1 parent c14aa53 commit c160cda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ class DocASTPhase extends Phase {
8282
}
8383

8484

85-
tree match {
85+
if (tree.symbol.is(Flags.Synthetic)) NonEntity
86+
else tree match {
8687
/** package */
8788
case pd @ PackageDef(pid, st) =>
8889
addPackage(PackageImpl(pd.symbol, annotations(pd.symbol), pd.symbol.showFullName, collectEntityMembers(st), path(pd.symbol)))

0 commit comments

Comments
 (0)