Skip to content

Commit c1d1c21

Browse files
committed
Rename filter to isSyntheticParent
1 parent cd663ec commit c1d1c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ class DecompilerPrinter(_ctx: Context) extends RefinedPrinter(_ctx) {
5555
}
5656

5757
override protected def toTextTemplate(impl: Template, ofNew: Boolean = false): Text = {
58-
def filter(sym: Symbol): Boolean = {
58+
def isSyntheticParent(sym: Symbol): Boolean = {
5959
sym.maybeOwner == defn.ObjectClass ||
6060
(sym == defn.ProductClass && impl.symbol.owner.is(Case))
6161
}
62-
val impl1 = impl.copy(parents = impl.parents.filterNot(p => filter(p.symbol)))
62+
val impl1 = impl.copy(parents = impl.parents.filterNot(p => isSyntheticParent(p.symbol)))
6363
super.toTextTemplate(impl1, ofNew)
6464
}
6565

0 commit comments

Comments
 (0)