File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
compiler/src/dotty/tools/dotc/decompiler
library/src/scala/tasty/util Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class DecompilationPrinter extends Phase {
4141 new TastyPrinter (unit.pickled.head._2).printContents()
4242 } else {
4343 out.println(s " /** Decompiled from $unit */ " )
44- out.print (TastyImpl .showSourceCode.showTree(unit.tpdTree)(ctx))
44+ out.println (TastyImpl .showSourceCode.showTree(unit.tpdTree)(ctx))
4545 }
4646 }
4747}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
4949 this += lineBreak()
5050 printTrees(stats1, lineBreak())
5151 }
52- this += lineBreak() += " }" += lineBreak()
52+ this += lineBreak() += " }"
5353 }
5454
5555 case Import (expr, selectors) =>
Original file line number Diff line number Diff line change 11/** Decompiled from out/posTestFromTasty/pos/simpleExractors/Bar.class */
22object Bar {
33 def unapply(arg: scala.Any): scala.Option[scala.Any] = scala.Some.apply[scala.Any](arg)
4- }/** Decompiled from out/posTestFromTasty/pos/simpleExractors/BarSeq.class */
4+ }
5+ /** Decompiled from out/posTestFromTasty/pos/simpleExractors/BarSeq.class */
56object BarSeq {
67 def unapplySeq(arg: scala.Any): scala.Option[scala.Seq[scala.Any]] = scala.Some.apply[collection.immutable.List[scala.Any]](scala.List.apply[scala.Any](arg))
7- }/** Decompiled from out/posTestFromTasty/pos/simpleExractors/Baz.class */
8+ }
9+ /** Decompiled from out/posTestFromTasty/pos/simpleExractors/Baz.class */
810object Baz {
911 def unapply[T](arg: T): scala.Option[T] = scala.Some.apply[T](arg)
10- }/** Decompiled from out/posTestFromTasty/pos/simpleExractors/BazSeq.class */
12+ }
13+ /** Decompiled from out/posTestFromTasty/pos/simpleExractors/BazSeq.class */
1114object BazSeq {
1215 def unapplySeq[T](arg: T): scala.Option[scala.Seq[T]] = scala.Some.apply[collection.immutable.List[T]](scala.List.apply[T](arg))
13- }/** Decompiled from out/posTestFromTasty/pos/simpleExractors/Foo.class */
16+ }
17+ /** Decompiled from out/posTestFromTasty/pos/simpleExractors/Foo.class */
1418class Foo() {
1519 def bar(x: scala.Any): scala.Unit = x match {
1620 case Bar(a) =>
You can’t perform that action at this time.
0 commit comments