File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
18
18
19
19
private class Buffer (implicit ctx : Context ) {
20
20
21
- private val sb : StringBuilder = new StringBuilder
21
+ private [ this ] val sb : StringBuilder = new StringBuilder
22
22
23
23
private [this ] var indent : Int = 0
24
24
def indented (printIndented : => Unit ): Unit = {
@@ -32,7 +32,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
32
32
def lineBreak : String = " \n " + (" " * indent)
33
33
34
34
def printTree (tree : Tree ): Buffer = tree match {
35
- case tree@ PackageClause (Term .Ident (name), stats) =>
35
+ case tree @ PackageClause (Term .Ident (name), stats) =>
36
36
val stats1 = stats.collect {
37
37
case stat@ Definition () if ! (stat.flags.isObject && stat.flags.isLazy) => stat
38
38
case stat@ Import (_, _) => stat
@@ -644,7 +644,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
644
644
printType(right)
645
645
646
646
case Type .ByNameType (tp) =>
647
- ???
647
+ this += " => "
648
+ printType(tp)
648
649
649
650
case Type .ParamRef (binder, idx) =>
650
651
???
You can’t perform that action at this time.
0 commit comments