File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
34
34
def printTree (tree : Tree ): Buffer = tree match {
35
35
case tree @ PackageClause (Term .Ident (name), stats) =>
36
36
val stats1 = stats.collect {
37
- case stat@ Definition () if ! (stat.flags.isObject && stat.flags.isLazy) => stat
38
- case stat@ Import (_, _) => stat
37
+ case stat @ PackageClause (_, _) => stat
38
+ case stat @ Definition () if ! (stat.flags.isObject && stat.flags.isLazy) => stat
39
+ case stat @ Import (_, _) => stat
39
40
}
40
41
41
42
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