File tree 3 files changed +7
-0
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
library/src/scala/tasty/util 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,7 @@ class TastyImpl(val rootContext: Contexts.Context) extends scala.tasty.Tasty { s
571
571
def unapply (x : Pattern )(implicit ctx : Context ): Option [Term ] = x match {
572
572
case lit : tpd.Literal @ unchecked => Some (lit)
573
573
case ref : tpd.RefTree @ unchecked if ref.isTerm => Some (ref)
574
+ case ths : tpd.This @ unchecked => Some (ths)
574
575
case _ => None
575
576
}
576
577
}
Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
190
190
this += " Type.ParamRef(" += binder+= " , " += idx += " )"
191
191
case Type .ThisType (tp) =>
192
192
this += " Type.ThisType(" += tp += " )"
193
+ case Type .SuperType (thistpe, supertpe) =>
194
+ this += " Type.SuperType(" += thistpe += " , " += supertpe += " )"
193
195
case Type .RecursiveThis (binder) =>
194
196
this += " Type.RecursiveThis(" += binder += " )"
195
197
case Type .RecursiveType (underlying) =>
Original file line number Diff line number Diff line change @@ -908,6 +908,10 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
908
908
printType(tp)
909
909
}
910
910
911
+ case Type .SuperType (thistpe, supertpe) =>
912
+ printType(supertpe)
913
+ this += " .super"
914
+
911
915
case Type .TypeLambda (paramNames, tparams, body) =>
912
916
inSquare(printMethodicTypeParams(paramNames, tparams))
913
917
this += " => "
You can’t perform that action at this time.
0 commit comments