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
745745
746746 def printTypeTree (tree : TypeTree ): Buffer = tree match {
747747 case TypeTree .Synthetic () =>
748+ // TODO try to move this logic into `printType`
748749 def printTypeAndAnnots (tpe : Type ): Buffer = tpe match {
749750 case Type .AnnotatedType (tp, annot) =>
750751 printTypeAndAnnots(tp)
@@ -906,7 +907,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
906907 prefix match {
907908 case Types .EmptyPrefix () =>
908909 case _ =>
909- printTypeOrBound(prefix) += " ."
910+ printTypeOrBound(prefix)
911+ this += " ."
910912 }
911913 this += name.stripSuffix(" $" )
912914 case _ =>
You can’t perform that action at this time.
0 commit comments