File tree 3 files changed +10
-6
lines changed
compiler/src/dotty/tools/dotc/decompiler
library/src/scala/tasty/util 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 {
41
41
new TastyPrinter (unit.pickled.head._2).printContents()
42
42
} else {
43
43
out.println(s " /** Decompiled from $unit */ " )
44
- out.print (TastyImpl .showSourceCode.showTree(unit.tpdTree)(ctx))
44
+ out.println (TastyImpl .showSourceCode.showTree(unit.tpdTree)(ctx))
45
45
}
46
46
}
47
47
}
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
49
49
this += lineBreak()
50
50
printTrees(stats1, lineBreak())
51
51
}
52
- this += lineBreak() += " }" += lineBreak()
52
+ this += lineBreak() += " }"
53
53
}
54
54
55
55
case Import (expr, selectors) =>
Original file line number Diff line number Diff line change 1
1
/** Decompiled from out/posTestFromTasty/pos/simpleExractors/Bar.class */
2
2
object Bar {
3
3
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 */
5
6
object BarSeq {
6
7
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 */
8
10
object Baz {
9
11
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 */
11
14
object BazSeq {
12
15
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 */
14
18
class Foo() {
15
19
def bar(x: scala.Any): scala.Unit = x match {
16
20
case Bar(a) =>
You can’t perform that action at this time.
0 commit comments