Skip to content

Commit c55166b

Browse files
committed
Remove unnecessary filter
1 parent 1c6aac4 commit c55166b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
192192
}
193193

194194
def blockText[T >: Untyped](trees: List[Tree[T]]): Text =
195-
("{" ~ toText(trees.filter(t => !t.symbol.isPrivate), "\n") ~ "}").close
195+
("{" ~ toText(trees, "\n") ~ "}").close
196196

197197
override def toText[T >: Untyped](tree: Tree[T]): Text = controlled {
198198

0 commit comments

Comments
 (0)