@@ -1055,7 +1055,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
10551055 printType(lo)
10561056 this += " <: "
10571057 printType(hi)
1058- case IsType ( tpe) => printType(tpe)
1058+ case tpe : Type => printType(tpe)
10591059 }
10601060
10611061 /** Print type
@@ -1089,7 +1089,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
10891089 this += " #"
10901090 case ThisType (TermRef (cdef, _)) if elideThis.nonEmpty && cdef == elideThis.get =>
10911091 case ThisType (TypeRef (cdef, _)) if elideThis.nonEmpty && cdef == elideThis.get =>
1092- case IsType ( prefix) =>
1092+ case prefix : Type =>
10931093 printType(prefix)
10941094 this += " ."
10951095 }
@@ -1266,7 +1266,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
12661266 case ByNameType (t) =>
12671267 this += " : "
12681268 printType(t)
1269- case IsType (tp) =>
1269+ case tp : Type =>
12701270 this += " : "
12711271 printType(tp)
12721272 }
@@ -1282,7 +1282,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
12821282 case ByNameType (_) | MethodType (_, _, _) | TypeLambda (_, _, _) =>
12831283 this += highlightKeyword(" def " ) += highlightTypeDef(name)
12841284 printMethodicType(info)
1285- case IsType ( info) =>
1285+ case info : Type =>
12861286 this += highlightKeyword(" val " ) += highlightValDef(name)
12871287 printMethodicType(info)
12881288 }
@@ -1298,7 +1298,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
12981298 def printMethodicTypeParams (paramNames : List [String ], params : List [TypeOrBounds ])(given elideThis : Option [Symbol ]): Unit = {
12991299 def printInfo (info : TypeOrBounds ) = info match {
13001300 case info : TypeBounds => printBounds(info)
1301- case IsType ( info) =>
1301+ case info : Type =>
13021302 this += " : "
13031303 printType(info)
13041304 }
@@ -1444,8 +1444,8 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
14441444
14451445 object Sequence {
14461446 def unapply (tpe : Type )(given ctx : Context ): Option [Type ] = tpe match {
1447- case AppliedType (TypeRef (prefix : TermRef , " Seq" ), IsType (tp) :: Nil ) if prefix.termSymbol.fullName == " scala.collection" => Some (tp)
1448- case AppliedType (TypeRef (prefix : TypeRef , " Seq" ), IsType (tp) :: Nil ) if prefix.typeSymbol.fullName == " scala.collection" => Some (tp)
1447+ case AppliedType (TypeRef (prefix : TermRef , " Seq" ), (tp : Type ) :: Nil ) if prefix.termSymbol.fullName == " scala.collection" => Some (tp)
1448+ case AppliedType (TypeRef (prefix : TypeRef , " Seq" ), (tp : Type ) :: Nil ) if prefix.typeSymbol.fullName == " scala.collection" => Some (tp)
14491449 case _ => None
14501450 }
14511451 }
@@ -1460,7 +1460,7 @@ class SourceCodePrinter[R <: Reflection & Singleton](val tasty: R)(syntaxHighlig
14601460
14611461 object Repeated {
14621462 def unapply (tpe : Type )(given ctx : Context ): Option [Type ] = tpe match {
1463- case AppliedType (TypeRef (ScalaPackage (), " <repeated>" ), IsType (tp) :: Nil ) => Some (tp)
1463+ case AppliedType (TypeRef (ScalaPackage (), " <repeated>" ), (tp : Type ) :: Nil ) => Some (tp)
14641464 case _ => None
14651465 }
14661466 }
0 commit comments