File tree 2 files changed +17
-2
lines changed
library/src/scala/tasty/util
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
37
37
def printTree (tree : Tree ): Buffer = tree match {
38
38
case tree @ PackageClause (Term .Ident (name), stats) =>
39
39
val stats1 = stats.collect {
40
- case stat@ Definition () if ! (stat.flags.isObject && stat.flags.isLazy) => stat
41
- case stat@ Import (_, _) => stat
40
+ case stat @ PackageClause (_, _) => stat
41
+ case stat @ Definition () if ! (stat.flags.isObject && stat.flags.isLazy) => stat
42
+ case stat @ Import (_, _) => stat
42
43
}
43
44
44
45
if (name == " <empty>" ) {
Original file line number Diff line number Diff line change
1
+ /** Decompiled from out/runTestFromTasty/run/simpleClass/Test.class */
2
+ object Test {
3
+ def main(args: scala.Array[scala.Predef.String]): scala.Unit = {
4
+ scala.Predef.println(new foo.A().getClass().getName())
5
+ scala.Predef.println(new foo.B().getClass().getName())
6
+ }
7
+ }/** Decompiled from out/runTestFromTasty/run/simpleClass/foo/A.class */
8
+ package foo {
9
+ class A()
10
+ }
11
+ /** Decompiled from out/runTestFromTasty/run/simpleClass/foo/B.class */
12
+ package foo {
13
+ class B() extends foo.A
14
+ }
You can’t perform that action at this time.
0 commit comments