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 18bb14c commit 666d9d1Copy full SHA for 666d9d1
library/src/scala/tasty/util/ShowSourceCode.scala
@@ -1168,14 +1168,14 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
1168
1169
object RootPackage {
1170
def unapply(tpe: TypeOrBounds)(implicit ctx: Context): Boolean = tpe match {
1171
- case Type.SymRef(sym, _) => sym.fullName == "<root>" // TODO use Symbol.==
+ case Type.SymRef(sym, _) => sym == definitions.RootClass
1172
case _ => false
1173
}
1174
1175
1176
object EmptyPackage {
1177
1178
- case Type.SymRef(sym, _) => sym.fullName == "<empty>"
+ case Type.SymRef(sym, _) => sym == definitions.EmptyPackageClass
1179
1180
1181
0 commit comments