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 a264e86 commit c03c9b8Copy full SHA for c03c9b8
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -231,16 +231,8 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
231
}
232
this
233
234
- case tree @ Term.Ident(name) =>
235
- tree.tpe match {
236
- case Type.SymRef(_, Types.EmptyPrefix()) | Type.TermRef(_, Types.EmptyPrefix()) => this += name
237
- case Type.SymRef(_, prefix) =>
238
- printTypeOrBound(prefix)
239
- this += "." += name
240
- case Type.TermRef(_, prefix) =>
241
242
243
- }
+ case tree @ Term.Ident(_) =>
+ printType(tree.tpe)
244
245
case Term.Select(qual, name, sig) =>
246
printTree(qual)
0 commit comments