File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -745,6 +745,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
745
745
746
746
def printTypeTree (tree : TypeTree ): Buffer = tree match {
747
747
case TypeTree .Synthetic () =>
748
+ // TODO try to move this logic into `printType`
748
749
def printTypeAndAnnots (tpe : Type ): Buffer = tpe match {
749
750
case Type .AnnotatedType (tp, annot) =>
750
751
printTypeAndAnnots(tp)
@@ -906,7 +907,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
906
907
prefix match {
907
908
case Types .EmptyPrefix () =>
908
909
case _ =>
909
- printTypeOrBound(prefix) += " ."
910
+ printTypeOrBound(prefix)
911
+ this += " ."
910
912
}
911
913
this += name.stripSuffix(" $" )
912
914
case _ =>
You can’t perform that action at this time.
0 commit comments