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 b9159b7 commit b12285eCopy full SHA for b12285e
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -165,9 +165,13 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
165
}
166
self match {
167
case Some(ValDef(_, TypeTree.Singleton(_), _)) =>
168
- if (stats1.nonEmpty) printBody(printSelf = false)
169
- case Some(ValDef(_, _, _)) => printBody(printSelf = true)
170
- case _ => if (stats1.nonEmpty) printBody(printSelf = false)
+ if (stats1.nonEmpty)
+ printBody(printSelf = false)
+ case Some(ValDef(_, _, _)) =>
171
+ printBody(printSelf = true)
172
+ case _ =>
173
174
175
176
this
177
0 commit comments