Skip to content

Commit 7e70271

Browse files
committed
Reformat code and add comment
1 parent da641f8 commit 7e70271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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 _ =>

0 commit comments

Comments
 (0)