We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da641f8 commit 7e70271Copy full SHA for 7e70271
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -745,6 +745,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
745
746
def printTypeTree(tree: TypeTree): Buffer = tree match {
747
case TypeTree.Synthetic() =>
748
+ // TODO try to move this logic into `printType`
749
def printTypeAndAnnots(tpe: Type): Buffer = tpe match {
750
case Type.AnnotatedType(tp, annot) =>
751
printTypeAndAnnots(tp)
@@ -906,7 +907,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
906
907
prefix match {
908
case Types.EmptyPrefix() =>
909
case _ =>
- printTypeOrBound(prefix) += "."
910
+ printTypeOrBound(prefix)
911
+ this += "."
912
}
913
this += name.stripSuffix("$")
914
0 commit comments