File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import reporting.diagnostic.messages._
15
15
import reporting .trace
16
16
import annotation .constructorOnly
17
17
import printing .Formatting .hl
18
+ import config .Printers
18
19
19
20
import scala .annotation .internal .sharable
20
21
@@ -51,7 +52,7 @@ object desugar {
51
52
private type VarInfo = (NameTree , Tree )
52
53
53
54
/** Is `name` the name of a method that can be invalidated as a compiler-generated
54
- * case class method that clashes with a user-defined method?
55
+ * case class method if it clashes with a user-defined method?
55
56
*/
56
57
def isRetractableCaseClassMethodName (name : Name )(implicit ctx : Context ): Boolean = name match {
57
58
case nme.apply | nme.unapply | nme.unapplySeq | nme.copy => true
@@ -765,7 +766,7 @@ object desugar {
765
766
}
766
767
767
768
flatTree(cdef1 :: companions ::: implicitWrappers)
768
- }
769
+ }.reporting(res => i " desugared: $res " , Printers .desugar)
769
770
770
771
/** Expand
771
772
*
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ object Printers {
19
19
val cyclicErrors : Printer = noPrinter
20
20
val debug = noPrinter // no type annotation here to force inlining
21
21
val derive : Printer = noPrinter
22
+ val desugar : Printer = noPrinter
22
23
val dottydoc : Printer = noPrinter
23
24
val exhaustivity : Printer = noPrinter
24
25
val gadts : Printer = noPrinter
You can’t perform that action at this time.
0 commit comments