File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,14 +1168,14 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
1168
1168
1169
1169
object RootPackage {
1170
1170
def unapply (tpe : TypeOrBounds )(implicit ctx : Context ): Boolean = tpe match {
1171
- case Type .SymRef (sym, _) => sym.fullName == " <root> " // TODO use Symbol.==
1171
+ case Type .SymRef (sym, _) => sym == definitions. RootClass
1172
1172
case _ => false
1173
1173
}
1174
1174
}
1175
1175
1176
1176
object EmptyPackage {
1177
1177
def unapply (tpe : TypeOrBounds )(implicit ctx : Context ): Boolean = tpe match {
1178
- case Type .SymRef (sym, _) => sym.fullName == " <empty> "
1178
+ case Type .SymRef (sym, _) => sym == definitions. EmptyPackageClass
1179
1179
case _ => false
1180
1180
}
1181
1181
}
You can’t perform that action at this time.
0 commit comments