File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
library/src/scala/tasty/util Expand file tree Collapse file tree 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
571571 def unapply (x : Pattern )(implicit ctx : Context ): Option [Term ] = x match {
572572 case lit : tpd.Literal @ unchecked => Some (lit)
573573 case ref : tpd.RefTree @ unchecked if ref.isTerm => Some (ref)
574+ case ths : tpd.This @ unchecked => Some (ths)
574575 case _ => None
575576 }
576577 }
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
190190 this += " Type.ParamRef(" += binder+= " , " += idx += " )"
191191 case Type .ThisType (tp) =>
192192 this += " Type.ThisType(" += tp += " )"
193+ case Type .SuperType (thistpe, supertpe) =>
194+ this += " Type.SuperType(" += thistpe += " , " += supertpe += " )"
193195 case Type .RecursiveThis (binder) =>
194196 this += " Type.RecursiveThis(" += binder += " )"
195197 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
908908 printType(tp)
909909 }
910910
911+ case Type .SuperType (thistpe, supertpe) =>
912+ printType(supertpe)
913+ this += " .super"
914+
911915 case Type .TypeLambda (paramNames, tparams, body) =>
912916 inSquare(printMethodicTypeParams(paramNames, tparams))
913917 this += " => "
You can’t perform that action at this time.
0 commit comments